in reply to Alien::Libxml2 cannot find the latest libxml2

Hi PhilipS

I used Homebrew to install a more up to date copy of libxml2 and I've put that copy early in the path. So if I do xml2-config --version I get 2.9.9. But Alien::Libxml2 keeps reporting that it finds the old version, 2.9.4. What am I doing wrong?

Try building Alien::Libxml2 again from a clean source tree (substitute in the correct paths below)

perl Makefile.PL LIBS="-LC:/path/to/libxml2/v2.9.9_2/lib -llibxml2" IN +C="-IC:/path/to/libxml2/v2.9.9_2/include"

Good luck,
Shadow

Replies are listed 'Best First'.
Re^2: Alien::Libxml2 cannot find the latest libxml2
by PhilipS (Novice) on Jul 04, 2019 at 18:49 UTC

    Thanks, Shadow. I tried using perl Makefile.PL LIBS="-LC:/usr/local/Cellar/libxml2/2.9.9_2/lib -llibxml2" INC="-IC:/usr/local/Cellar/libxml2/2.9.9_2/include" but it still doesn't work for me. make test still fails at the #include <libxml/parser.h> line.

    I do have a parser.h file; it is located at /usr/local/Cellar/libxml2/2.9.9_2/include/libxml2/libxml/parser.h. I tried using INC="-IC:/usr/local/Cellar/libxml2/2.9.9_2/include/libxml2" and INC="-IC:/usr/local/Cellar/libxml2/2.9.9_2/include/libxml2/libxml" to see if that helped, but nothing I tried worked.