Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question
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

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

Try out

yum remove glibc && rpm -ivh libxml2-2.9.0-1.x86_64.rpm
share|improve this answer
WTF? yum remove glibc? – Abel Cheung Feb 3 '15 at 3:51

Your Answer


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.