Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

make test failed - "Your setup of library paths is incorrect!

by mewto (Initiate)
on Apr 15, 2010 at 20:10 UTC ( #834968=perlquestion: print w/ replies, xml ) Need Help??
mewto has asked for the wisdom of the Perl Monks concerning the following question:

I am trying build XML::LibXML and XML::LibXSLT modules from source on two CentOS 5.4 boxes. Both are supposedly identical with a pretty standard server installation with only the server packages & most of development packages selected.

Somehow, one does not have this problem but one has the problem. When I 'make test', it failed.

[root@server1 XML-LibXML-1.70]# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/01basic.....................# Test 3 got: "20703" (t/01basic.t at li +ne 12) t/01basic.....................NOK 3 # t/01basic.t line 12 is: ok(XML::LibXML::LIBXML_VERSION, XML::LibXML +::LIBXML_RUNTIME_VERSION); Compiled against libxml2 version: 20703 Running libxml2 version: 20706 DO NOT REPORT THIS FAILURE: Your setup of library paths is incorrect! t/01basic.....................FAILED test 3 Failed 1/3 tests, 66.67% okay t/02parse.....................ok
I am not sure if it affects the module, (it prob doesn't). I bothers me to have the test continue to fail. I would like to figure out why. Can someone shed some light? Thanks!

Comment on make test failed - "Your setup of library paths is incorrect!
Download Code
Re: make test failed - "Your setup of library paths is incorrect!
by jfroebe (Vicar) on Apr 15, 2010 at 20:58 UTC

    You need to rebuild the Perl module on this machine as the version for libxml2 is different:

    Compiled against libxml2 version: 20703 Running libxml2 version: 20706

    Jason L. Froebe

    Blog, Tech Blog

      Thanks, that was a good catch. I missed that.

      Yes, there were inconsistent & multiple versions of libxml2 installed. I cleaned that up and it compiles fine now.

Re: make test failed - "Your setup of library paths is incorrect!
by Khen1950fx (Canon) on Apr 15, 2010 at 22:45 UTC
    It seems to me that you have two versions of libxml2 installed, causing some conflicts for XML::LibXML. You'll need to remove one or correct the path. As for which one to remove, you can check to see which libxml2 XML::LibXML is linked to like this:
    #!/usr/bin/perl use strict; use warnings; use XML::LibXML; print my $DLL_Version = XML::LibXML::LIBXML_RUNTIME_VERSION, "\n";
    It returns 20626 on my machine.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://834968]
Approved by herveus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-09-30 14:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (373 votes), past polls