Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Alien::Libxml2 cannot find the latest libxml2

by shadowsong (Pilgrim)
on Jul 03, 2019 at 22:55 UTC ( [id://11102379]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11102379]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-19 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found