in reply to Re: cpan install error for XML::LibXML::Node
in thread cpan install error for XML::LibXML::Node

I tried that and get the same results. I'm not an experienced compiler. I'm assuming the '-l' is just passed to gcc? The libxml2 library is:

/usr/lib64/libxml2.so.2.7.6 /usr/lib64/libxml2.so.2 -> libxml2.so.2.7.6

that is why I used libxml2. Maybe I should make it libxml2.so.2?

Replies are listed 'Best First'.
Re^3: cpan install error for XML::LibXML::Node
by hippo (Archbishop) on May 31, 2017 at 13:11 UTC

    Nope, definitely -lxml2.

    $ xml2-config --libs -lxml2 -lz -lm

      Well, that definitely answers the library question. Changed to '-lxml2 -lz -lm,' but still can't seem to find the libxml header files. Really odd since I have that explicitly included.

        still can't seem to find the libxml header files.

        That's because your include flag is wrong too. It should be -I/usr/include/libxml2 and hopefully you'll be sorted.