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

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

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to