Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 cooling their heels in the Monastery: (18)
As of 2015-07-02 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (39 votes), past polls