Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Makefile.PL args in cpan(p, -, etc)

by mpersico (Monk)
on Sep 23, 2013 at 00:53 UTC ( [id://1055214]=perlquestion: print w/replies, xml ) Need Help??

mpersico has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know if there is any way to pass Makefile,.PL arguments when using one of the cpan modules? I need to do
perl Makefile.PL EXPATLIBPATH=E:\expat\2.01
in order to build XML::Path on Windows. I'd rather NOT do it by hand or start patching. Thanks

Replies are listed 'Best First'.
Re: Makefile.PL args in cpan(p, -, etc)
by Anonymous Monk on Sep 23, 2013 at 02:04 UTC
      Thank you, anonymous. I will alter the Makefile.PL to set PERL_MM_OPT based on envvars that should be set before cpanp is run.

        Thank you, anonymous. I will alter the Makefile.PL to set PERL_MM_OPT based on envvars that should be set before cpanp is run.

        Why? I thought you wanted to avoid editing files?

        If you're going to edit files, why not set EXPATLIBPATH directly instead?

        Weird

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1055214]
Approved by marinersk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found