Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re:XML::LibXML fails install on macOS Big Sur

by wazat (Monk)
on Dec 05, 2020 at 16:45 UTC ( [id://11124713]=note: print w/replies, xml ) Need Help??


in reply to XML::LibXML fails install on macOS Big Sur

I don't think PATH affects search for .so files

# PATH PATH="/usr/local/Cellar/libxml2/2.9.10_2/bin:$PATH" export PATH

It's been a long while since I've had to deal with something like this but you might try LD_LIBRARY_PATH. Assuming libxml2.so.2 is located in /usr/local/Cellar/libxml2/2.9.10_2/bin, you could try

LD_LIBRARY_PATH=/usr/local/Cellar/libxml2/2.9.10_2/bin cpanm XML::LibX +ML

Replies are listed 'Best First'.
Re^2: XML::LibXML fails install on macOS Big Sur
by Anonymous Monk on Dec 06, 2020 at 08:56 UTC

      LD_LIBRARY_PATH may be bad, but its use to investigate if there is a problem locating libxml is less so.

      I'm quite rusty at this sort of thing. Perhaps you can provide quidance to the original poster.

        First of all, thanks for all your help. It's much appreciated. I have made it a bit further. Now I get this error

        Can't locate loadable object for module XML::LibXML in @INC (@INC cont +ains: /Users/root/Documents/pxe_tools_1_39_145/include /Users/root/pe +rl5/perlbrew/perls/perl-5.28.2/lib/site_perl/5.28.2/darwin-2level /Us +ers/root/perl5/perlbrew/perls/perl-5.28.2/lib/site_perl/5.28.2 /Users +/root/perl5/perlbrew/perls/perl-5.28.2/lib/5.28.2/darwin-2level /User +s/root/perl5/perlbrew/perls/perl-5.28.2/lib/5.28.2) at /Users/root/pe +rl5/perlbrew/perls/perl-5.28.2/lib/site_perl/5.28.2/XML/LibXML.pm lin +e 156.
        BEGIN failed--compilation aborted at /Users/root/perl5/perlbrew/perls/perl-5.28.2/lib/site_perl/5.28.2/XML/LibXML.pm line 156.

        I have LibXML2 installed with homebrew, and I have XML::LibXML installed

        XML::LibXML is up to date. (2.0206)

        XML::LibXML ran the testing and building phase fine. I think my issue originally was the path in my bash_profile file wasn't correct, I added this

        export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH

        and all worked fine, or at least XML::LibXML tested, and installed without an error.

        My question is how do I find out what object isn't loading? The point it stops at is when LibXML.pm call for Common.pm, but that's installed, and the two requirements for that are installed as well. Any thoughts? Or do you think it's time to go back to the drawing board.

        2020-12-08 Athanasius corrected over-long code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found