Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by mpersico (Beadle)
on Sep 23, 2013 at 00:53 UTC ( #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

Comment on Makefile.PL args in cpan(p, -, etc)
Download Code
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
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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-10-02 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls