marco.shaw has asked for the wisdom of the Perl Monks concerning the following question:

I decided to go with XML:LibXML for doing some Xpath queries and XML editing. (I don't know if that was the best choice or not.) Solaris 10/Perl 5.8.4 I have /usr/include/libxml2 and /local/include/libxml2. I've tried running (as root): perl -MCPAN -e 'install XML::LibXML' I get:
... libxml2 not found Try setting LIBS and INC values on the command line ...
I've tried different combinations of trying to set LIBS and also setting the -I flag, but nothing seems to work for me.

Replies are listed 'Best First'.
Re: Installing XML::LibXML
by runrig (Abbot) on Jan 29, 2009 at 16:25 UTC
    I had some trouble installing that library myself. It would never have worked using CPAN (the module). Part of it came down to just running "perl Makefile.PL" multiple times until it worked. I have no explanation.