> On Fri, 24 Sep 2004, Ajey Kulkarni wrote: > > > I installed the expat libs,but the cpan shell is now asking > > for EXPATLIBPATH and EXPATINCPATH. > > Oh. That. Yeah, that's a pain. > > The first thing is to get Expat installed, which I forgot about before. > Instructions for this will vary depending what OS you're running on. The > docs for whichever of XML::SAX or XML::Parser you're going with may have > more notes to go by here. > > Once Expat is installed, you need to set those variables for Perl to use > while building. The two ways I can think of doing this are: > > * set them before launching the CPAN shell with one of these methods: > > $ sudo perl -MCPAN -e shell EXPATLIBPATH=... EXPATINCPATH=... > > or > > $ export EXPATLIBPATH=... > $ export EXPATINCPATH=... > $ sudo perl -MCPAN -e shell > > (Note that if you use csh/tcsh, it's `setenv FOO "bar"` instead.) > > * or, run the CPAN shel to download, then open a subshell to build: > > $ sudo perl -MCPAN -e shell > cpan> get XML::Parser > cpan> look XML::Parser > # perl Makefile.PL EXPATLIBPATH=... EXPATINCPATH=... > # make && make test && make install >
In the case of using CPAN you can temporarily (or permanantly) set these options using: > o conf makepl_arg "EXPATINCPATH=... EXPATLIBPATH=..." If you have other arguments to Makefile.PL you don't want to clobber them so they will have to be set in the above too. To see what is already configured just issue, > o conf By itself. You can reset makepl_arg back to empty once the module is installed, though I would be surprised if it mattered. If you want to keep them as permanant settings, issue, > o conf commit Before closing your session. > I can be more specific if I know what operating system you're running > and which Unix shell (bash, tcsh, etc) you're using, but in general the > approach will be along these lines. > > > > -- > Chris Devers > http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
