Subject: | XML::SAX, possibly others boom when INSTALLBASE not in PERL5LIB |
This causes cpanm to fail:
$ PERL_MM_OPT=INSTALL_BASE=/tmp/someplace/not/in/perl5lib cpanm XML::SAX
The problem is this line in XML::SAX's Makefile.PL:
\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))-
Show quoted text
>save_parsers()"
The problem is that it tries to run perl under the assumption that the lib will be
installed to somewhere in @INC, whether by PERL5LIB or otherwise. CPAN.pm fixes this
by adding the blib of the module to PERL5LIB, which works on my locally-modified
cpanm as well.