Click here to get back home

Passing Environment and ExtUtils::MakeMaker options to CPAN methods

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Passing Environment and ExtUtils::MakeMaker options to CPAN methods comp.lang.perl.modules 08-05-2005
Posted by comp.lang.perl.modules on August 5, 2005, 8:42 am
Please log in for more thread options


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
easy.

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' \
INC='-I/usr/local/include/libxml2 -I/usr/include'
$ make
$ make test
$ make install
$ exit

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
ExtUtils::MakeMaker.

Any pointers appreciated.



Posted by comp.lang.perl.modules on August 5, 2005, 9:05 am
Please log in for more thread options


Sorry, I meant to say CPAN::Module->make() method above, not
CPAN::Shell->make().

Gordon Marler
gmarler@gmarler.com



Similar ThreadsPosted
ExtUtils::MakeMaker December 30, 2006, 9:06 am
ExtUtils::MakeMaker installation question January 15, 2005, 11:38 am
Setting file permissions in ExtUtils::MakeMaker January 25, 2005, 5:15 am
extutils::MakeMaker trying to portability build a shared lib July 9, 2007, 4:36 pm
Options for passing Hash to a subroutine. March 30, 2005, 7:39 pm
ANNOUNCE: ExtUtils-ModuleMaker-0.43 and ExtUtils-ModuleMaker-PBP-0.08 October 1, 2005, 3:48 pm
ANNOUNCE: ExtUtils-ModuleMaker-0.43 and ExtUtils-ModuleMaker-PBP-0.08 October 1, 2005, 3:51 pm
NetPacket::TCP and "options" field February 15, 2005, 1:18 pm
pod2usage output options April 11, 2008, 8:48 am
Help needed with MakeMaker August 15, 2005, 2:37 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap