in reply to XML::LibXML installation woes (or, whence that library file?)

A utility called xml2-config is ordinarily installed with libxml2. It is used to provide linker flags and the like. Is it present and in the $PATH in your installation? I believe that XML::LibXML uses that.

You don't say what kind of system you're on, but you may need to tell the .so loader about your new libs. Glibc systems use ldconfig, Solaris LD_LIBRARY_PATH, which also works for glibc ld.so. Your nonstandard PREFIX suggests that you are installing in a user directory which won't be on the compiler's include path or the linker's normal library path.

After Compline,
Zaxo

  • Comment on Re: XML::LibXML installation woes (or, whence that library file?)

Replies are listed 'Best First'.
Re: Re: XML::LibXML installation woes (or, whence that library file?)
by AidanLee (Chaplain) on Dec 20, 2001 at 00:58 UTC

    Good diagnosis. I'm installing on a web host who runs a heavily modified (or so i'm told) Linux 2.2 kernel. I found xml2-config without any problems, and set my path to include the local bin directory i had created.

    I've found the same files lestrrat located on his machine. I've tried setting the LIBS directive on the Makefile.PL command line to reflect this (broken into multiple lines for clarity only):

    perl Makefile.PL PREFIX=/big/dom/xclickautomation/bin/perl LIBS='-L/big/dom/xclickautomation/lib' INC='-I/big/dom/xclickautomation/include'

    but it still can't seem to find what it's looking for. I'd note that it seems to be searching for a library called 'xml2' not 'libxml2'. I even tried changing this in the Makefile.PL to 'libxml2' but it still claimed it couldn't find it. I also set LD_LIBRARY_PATH to point to the local lib directory, although running on Linux may make that moot.

    I searched through the libxml mailing list archives without turning up anything even remotely related to this problem (though it doesn't sound like a libxml problem, but rather an XML::LibXML install issue.) I haven't found any mention of a XML::LibXML mailing list either. Has anyone heard of one?

      I searched through the libxml mailing list archives without turning up anything even remotely related to this problem (though it doesn't sound like a libxml problem, but rather an XML::LibXML install issue.) I haven't found any mention of a XML::LibXML mailing list either. Has anyone heard of one?

      XML::libXML is discussed on the perl-xml mailing list.