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