Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Alien::Libxml2 - build error on RedHat

by iqbal_1956 (Initiate)
on Aug 12, 2021 at 09:40 UTC ( #11135801=note: print w/replies, xml ) Need Help??

in reply to Re: Alien::Libxml2 - build error on RedHat
in thread Alien::Libxml2 - build error on RedHat

Yes - this is the problem. That gives this:

perl -MScalar::Util -e1 List::Util object version 1.27 does not match bootstrap parameter 1.56 + at /usr/lib64/perl5/ line 213. Compilation failed in require at /nfs/home/ ... /perl5/perllib/lib/per +l5/Scalar/ line 23. Compilation failed in require. BEGIN failed--compilation aborted.

So it is an incompatibility between the modules we have downloaded from METACPAN and the default distributions which have come on the box. We will need to go with one or the other but not a mix of both. Either way we will need to get the sys admins to either install some more packages (as was initially suggested above) or remove what's there. It's always a pity when there is no direct root acces....

Thank you for the response and guidance. All the suggestions in this chain have been very helpful in uncovering the issue and moving us forward

Replies are listed 'Best First'.
Re^3: Alien::Libxml2 - build error on RedHat
by swl (Vicar) on Aug 12, 2021 at 22:16 UTC

    Installing a separate perl using something like perlbrew is the simplest way to go, as suggested by kcott in 11135780. That assumes you can get past the lack of internet access, although I assume others have encountered and and solved that issue previously so there will be previous experiences you can draw on.

    Another option is to use local::lib to keep your module installs out of the way of the system package tree.

    Another consideration is how you installed the local modules from metacpan. If you have no direct internet access on that box (as noted in 11135802) then I assume you downloaded the tarballs manually and transferred them across? Did you run the module tests? Did they fail and you then force installed? Did you skip the tests? I would expect the module tests would throw issues in cases like this.

    And don't forget to check the value of @INC. It could be that your modules installed correctly, but if .../perl/site/lib is listed after .../perl/lib then issues like this can occur.

Re^3: Alien::Libxml2 - build error on RedHat
by ikegami (Patriarch) on Aug 13, 2021 at 13:55 UTC

    /usr/lib64/perl5/ suggests you are using the system perl, and /nfs/home/.../perl5/perllib/lib/perl5 suggests a manually provided addition to @INC. Sounds like this manually added path is garbage (belonds to a different perl).

    What's the output of

    perl -M5.010 -e' say for @INC; say "$_: $ENV{$_}" for sort grep /^PERL/, keys(%ENV); '

    (Best to use a different word rather than ... for private info.)

    Seeking work! You can reach me at

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2022-05-21 13:32 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.