Re: Warning: XML::LibXML compiled against libxml2 20708, but runtime libxml2 is older 20626

Gary Yang <[email protected]> Fri, 18 Nov 2011 17:24:56 -0800 (PST)
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Francisco and Shlomi,


strace and ldd revealed the lib path Perl looks for .so.   LD_LIBRARY_PATH has no effect on Perl. In my case, it looks for the path /usr/lib64. I placed the correct release there. Problem solved.


Thanks,


Gary





----- Original Message -----
From: Francisco Obispo <[email protected]>
To: Gary Yang <[email protected]>
Cc: "[email protected]" <[email protected]>
Sent: Thursday, November 17, 2011 12:11 PM
Subject: Re: Warning: XML::LibXML compiled against libxml2 20708, but runtime libxml2 is older 20626

it looks like you had 2.7.8 and then installed 2.6.26,

I would check your perl library binary with 'ldd' to check where it's looking for the C library, if you don't have control over the /usr/lib directory, you can create your own under ~/lib/ and have the links set there properly, then it's just a matter of setting LD_LIBRARY_PATH to $HOME/lib:$LD_LIBRARY_PATH

you could also re-compile and in stall XML::LibXML and specifying the version you want to use directly before compiling/linking.

hope that helps.


On Nov 16, 2011, at 11:25 AM, Gary Yang wrote:

> Hi,
> 
> I posted a similar question earlier. But, no one respond. Can someone kindly help?
> 
> I got the Warnings below:
> 
> Warning: program compiled against libxml 207 using older 206
> Warning: XML::LibXML compiled against libxml2 20708, but runtime libxml2 is older 20626
> 
> I guess it is related to library path. But, I do not know how to fix it. Below is the detail.
> 
> echo $LD_LIBRARY_PATH 
> /usr/lib
> 
> ls -alF /usr/lib | grep xml
> -rw-r--r--   1 root root  4736614 Nov 10 15:30 libxml2.a
> -rwxr-xr-x   1 root root      925 Nov 10 15:30 libxml2.la*
> lrwxrwxrwx   1 root root       16 Nov 10 15:30 libxml2.so -> libxml2.so.2.7.8*
> lrwxrwxrwx   1 root root       16 Nov 10 15:30 libxml2.so.2 -> libxml2.so.2.7.8*
> -rwxr-xr-x   1 root root  1250176 Aug  4  2009 libxml2.so.2.6.26*
> -rwxr-xr-x   1 root root  3377026 Nov 10 15:30 libxml2.so.2.7.8*
> -rw-r--r--   1 root root   572212 Jul 12  2006 libxmlsec1.a
> lrwxrwxrwx   1 root root       19 Jun 23 10:55 libxmlsec1.so -> libxmlsec1.so.1.2.9*
> lrwxrwxrwx   1 root root       19 Jun 23 10:52 libxmlsec1.so.1 -> libxmlsec1.so.1.2.9*
> -rwxr-xr-x   1 root root   410628 Jul 12  2006 libxmlsec1.so.1.2.9*
> -rw-r--r--   1 root root      198 Nov 10 15:30 xml2Conf.sh
> -rw-r--r--   1 root root      619 Jul 12  2006 xmlsec1Conf.sh
> 
> 
> When I run my Perl script, I got the warnings. Any idea?
> 
> 
> Thanks,
> 
> 
> Gary
> 
> _______________________________________________
> Perl-XML mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Francisco Obispo 
email: [email protected]
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
Key fingerprint = 532F 84EB 06B4 3806 D5FA  09C6 463E 614E B38D B1BE
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs