Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
August 5, 2005, 12:42 pm
rate this thread
I'm trying to fully automate the installation of a long list of modules
using methods in CPAN::Shell, rather than running that shell
interactively. For modules that require no interaction, this has been
However, there are many modules that require you to set specific
environment variables and/or pass options to ExtUtils::MakeMaker on the
command line, such as in this example for the XML::LibXML module:
cpan> look XML::LibXML
$ XMLPREFIX=/usr/local/src/libxml2/2.6.13 \
/full/path/to/perl Makefile.PL \
LIBS='-L/usr/local/lib -R/usr/local/lib -L/usr/lib -lxml2 -lz -lm' \
$ make test
$ make install
After searching for solutions to accomplishing the same result using
CPAN::Shell, Module::Install, etc, I'm still not clear on how I'd pass
this information to the CPAN::Shell->make() method, for instance.
I'm sure it would be easy to pass the environment variable indirectly
by setting $ENV prior to calling CPAN::Shell->make(), but
that still leaves the options that need to be passed to
Any pointers appreciated.
August 5, 2005, 1:05 pm
- » Is there a module that can check if user "foo" may read a file?
- — Next thread in » PERL Modules Announcements
- » Net::Telnet -- does it support Proxy or SOCKS connections?
- — Previous thread in » PERL Modules Announcements