Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to install libxml2, but my system complains about dependencies. The dependent packages exist on system.

The ultimate goal is to install xml_grep2, I have been trying various methods (cpan, etc).

[root@testserver xml]# rpm -ivh libxml2-2.9.0-1.x86_64.rpm
  warning: libxml2-2.9.0-1.x86_64.rpm: Header V4 DSA signature: NOKEY, key ID de95bc1f
  error: Failed dependencies:
  libc.so.6(GLIBC_2.14)(64bit) is needed by libxml2-2.9.0-1.x86_64

[root@testserver xml]# yum install glibc
  Package glibc-2.5-107.x86_64 already installed and latest version
  Package glibc-2.5-107.i686 already installed and latest version

[root@testserver xml]# find / -name libc.so.6
  /lib64/libc.so.6
  /lib/libc.so.6
  /lib/i686/nosegneg/libc.so.6
share|improve this question
1  
Please edit and add more information. What distribution and version? –  uther Feb 26 '13 at 12:52
    
The package seems to need an outdated (or newer) version of the C library. My Fedora 18 has libxml2-2.9.0-3.fc18 and glibc-2.16-28.fc18, which is substantially newer. BTW, I'd be very suprised if your distribution doesn't have a package for this. What do you need it for? –  vonbrand Feb 26 '13 at 14:35
    
CentOS release 5.9 (Final) –  Naeem Feb 26 '13 at 15:05
    
[root@testserver App-xml_grep2-0.13]# perl Makefile.PL Warning: prerequisite XML::LibXML 0 not found. Warning: prerequisite XML::LibXML::XPathContext 0 not found. Writing Makefile for App::xml_grep2 Writing MYMETA.yml and MYMETA.json –  Naeem Feb 26 '13 at 15:06
    
[root@testserver App-xml_grep2-0.13]# yum list all | grep libxml2 libxml2.i386 2.6.26-2.1.15.el5_8.6 installed libxml2.x86_64 2.6.26-2.1.15.el5_8.6 installed libxml2-devel.i386 2.6.26-2.1.15.el5_8.6 installed libxml2-devel.x86_64 2.6.26-2.1.15.el5_8.6 installed libxml2-python.x86_64 2.6.26-2.1.15.el5_8.6 base –  Naeem Feb 26 '13 at 15:10
add comment

2 Answers

If you are really sure that you can work with this version you can install the rpm with --nodeps, I would prefer to instal the libxml2 with yum to ensure that the version is compatible with my libs.

share|improve this answer
    
Do not ever install with --nodeps, that is guaranteed not to work (because it is missing dependencies...). –  vonbrand Feb 26 '13 at 14:31
add comment

Try out

yum remove glibc && rpm -ivh libxml2-2.9.0-1.x86_64.rpm
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.