Kenneth Massada bio photo

Kenneth Massada

..

Twitter Google+ Github Stackoverflow

Originally recieved this error error while loading shared libraries: libxml2.so.2: cannot open shared object file:

I have a missing library, so I decide to install it

#yum install libxml2.so.2
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libxml2.i686 0:2.7.6-14.el6 will be installed
--> Finished Dependency Resolution
Error: Protected multilib versions: libxml2-2.7.6-14.el6.i686 != libxml2-2.7.6-14.el6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

of course I tried the default suggested steps yum install libxml2.so.2 --skip-broken and rpm -Va --nofiles --nodigest

This file is linked to many items so I can't remove it,

--> Processing Dependency: libxml2.so.2(LIBXML2_2.4.30)(64bit) for package: libvirt-client-0.9.4-23.el6.x86_64

Fix is  remove the package from the rpm database

# rpm -e --justdb --nodeps packagename
# yum install libxml2.so.2 --skip-broken
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libxml2.i686 0:2.7.6-14.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved

Install       1 Package(s)
Total download size: 800 k
Installed size: 1.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction