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

It seems the makefile was only looking at the first '-I' and not all of them

Possibly an issue with your quoting (or lack thereof).
When giving multiple '-I' args to Makefile.PL's INC, you need to enclose them in double quotes:
perl Makefile.PL INC="-I/first/location -I/second/location"
But if there's only one '-I' then you can do away with the double quotes.

Cheers,
Rob

Replies are listed 'Best First'.
Re^10: cpan install error for XML::LibXML::Node
by BradV (Sexton) on Jun 01, 2017 at 15:20 UTC

    Ah! I had:

    o conf makepl_arg "INC=-I/usr/include -I/usr/local/include -I/usr/include/libxml2/libxml LIBS=-L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/lib64 -llibxml2 -lm"

    I should probably have used:

    o conf makepl_arg 'INC="-I/usr/include -I/usr/local/include -I/usr/include/libxml2/libxml" LIBS="-L/usr/lib64 -L/usr/lib -L/usr/local/lib -L/lib64" -llibxml2 -lm'

    Thanks for the help! :)