Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to pass options to Makefile.PL when using cpanm?

by szabgab (Priest)
on Nov 28, 2013 at 17:15 UTC ( #1064849=perlquestion: print w/replies, xml ) Need Help??

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

How can I convince cpanm to run
perl Makefile.PL LIBS='-L/opt/libxml/lib/ -L/opt/zlib/lib' INC='-I/opt +/libxml/include/libxml2 -I/opt/zlib/include'
when it wants to run perl Makefile.PL ?

Replies are listed 'Best First'.
Re: How to pass options to Makefile.PL when using cpanm?
by McA (Priest) on Nov 28, 2013 at 18:07 UTC

    Hi Gabor,

    the man page for cpanm shows some experimental parameters --configure-args, --build-args, --test-args, --install-args which probably help to solve your issue.

    Best regards
    McA

Re: How to pass options to Makefile.PL when using cpanm? (export PERL_MM_OPT, PERL_MB_OPT)
by Anonymous Monk on Nov 28, 2013 at 17:30 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2020-05-28 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (165 votes). Check out past polls.

    Notices?