prasanna1981 has asked for the wisdom of the Perl Monks concerning the following question:

When I tried compiling XML-LibXML-1.40 in Redhat Linux 5.9, I am getting the following error,

[prasanna@XML-LibXML-1.40]$ /opt/ActivePerl-5.12/bin/perl Makefile.PL enable native perl UTF8 running xml2-config... failed using fallback values for LIBS and INC options: LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lz -lm' INC='-I/usr/local/include -I/usr/include' If this is wrong, Re-run as: $ /opt/ActivePerl-5.12/bin/perl-static Makefile.PL LIBS='-L/path/to/ +lib' INC='-I/path/to/include' looking for -lxml2... no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from http://www.libxml.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are.

Please guide me here. How to check whether libxml2 is installed or not

Replies are listed 'Best First'.
Re: Not able to make XML-LibXML package
by marto (Cardinal) on Apr 08, 2013 at 08:47 UTC
    Or get libxml2 from http://www.libxml.org/

    Query your OS package management, or check manually to see if this is installed. If this isn't installed, do so:

    If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are.

    The site indicated provides the downloads requred should you not be able to use your OS package management tool. If none of this makes sense read the module documentation (including the README) or speak to your systems administrator.

    Please don't ignore formatting advice displayed when posting. See How do I post a question effectively?.

Re: Not able to make XML-LibXML package
by Corion (Patriarch) on Apr 08, 2013 at 08:41 UTC

    What steps have you taken to remedy the problem?

    Have you consulted wiht your system administrator?

    Have you looked at your package manager system, and determined whether it offers to install libxml2 as a package? Note that you may have to install the "developer version" of the package in addition.

    Have you looked at the website indicated by the error output?

Re: Not able to make XML-LibXML package (install missing prerequisites, apt-get install libxml2 libxml2-dev zlib1g-dev, apt-get install libxml-libxml-perl )
by Anonymous Monk on Apr 08, 2013 at 19:44 UTC

    install the missing prerequisites apt-get install libxml2 libxml2-dev zlib1g-dev

    Still not working? Missing some files? reinstall apt-get install --reinstall zlibc zlib1g zlib1g-dev

    Or install the perl package your vendor provides for the perl it provides (in case you didn't compile your own perl ) apt-get install libxml-libxml-perl

    Don't have apt-get? Figure out what you do have, consult your operating system manual ... or you'll have to install libxml2/zlib... from sources