On Oct 29, 2005, at 3:09 PM, Bill Stephenson wrote:

I can't get XML::Parser to install. Here's what cpan says:

==========================

  CPAN.pm: Going to build M/MS/MSERGEANT/XML-Parser-2.34.tar.gz

Note (probably harmless): No library found for -lexpat

Expat must be installed prior to building XML::Parser and I can't find
it in the standard library directories. You can download expat from:

http://sourceforge.net/projects/expat/

If expat is installed, but in a non-standard directory, then use the
following options to Makefile.PL:

    EXPATLIBPATH=...  To set the directory in which to find libexpat

    EXPATINCPATH=...  To set the directory in which to find expat.h

For example:

perl Makefile.PL EXPATLIBPATH=/home/me/lib EXPATINCPATH=/home/ me/include

...

I'm pretty sure I successfully installed expat with Fink

There you go then. Expat is installed, but in a non-standard directory.

Use CPAN's "look" command - i.e. "look XML::Parser" to open up a sub- shell in the build directory, then run the configuration step (described above) manually. Then exit (or ctrl-d) from the sub-shell, and run "install XML::Parser" to let CPAN handle the rest.

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Reply via email to