Description of problem: # /usr/libexec/qemu-kvm /usr/libexec/qemu-kvm: error while loading shared libraries: libspice.so.0: cannot open shared object file: No such file or directory # rpm -qa |grep spice tclspice-20-3.el5 # rpm -qa |grep kvm kmod-kvm-83-147.el5 etherboot-zroms-kvm-5.4.4-13.el5 kvm-83-147.el5 kvm-tools-83-147.el5 Version-Release number of selected component (if applicable): 83-147.el5 How reproducible: 100% Steps to Reproduce: 1. install kvm by "yum install -y kvm" 2. issue "/usr/libexec/qemu-kvm" in terminal 3. Actual results: kvm cannot find libspice.so.0. Expected results: kvm would return the help msg. Additional info: I think kvm.rpm actually using qspice for libspice.so.0, but tclspice is installed by dependency. and if i installed qspice*, qemu-kvm works good.
Do you have the EPEL repository configured? tclspice is not part of RHEL. 1) If it is a real library name conflict, it needs to be sorted out by the qspice maintainers. Reassigning this BZ to them, so they can decide what to do about it. 2) tclspice provides libspice.so.0, but libspice.so.0 is on /usr/lib64/tclspice/libspice.so.0. Maybe it's not a real library name conflict and tclspice shouldn't actually have a libspice.so.0 RPM provides.
(In reply to comment #1) > Do you have the EPEL repository configured? tclspice is not part of RHEL. > yes, as, [epel] name=Extra Packages for Enterprise Linux 5 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL [epel-debuginfo] name=Extra Packages for Enterprise Linux 5 - $basearch - Debug #baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch/debug mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-5&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1 [epel-source] name=Extra Packages for Enterprise Linux 5 - $basearch - Source #baseurl=http://download.fedoraproject.org/pub/epel/5/SRPMS mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-5&arch=$basearch failovermethod=priority enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL gpgcheck=1 > 1) If it is a real library name conflict, it needs to be sorted out by the > qspice maintainers. Reassigning this BZ to them, so they can decide what to do > about it. > > 2) tclspice provides libspice.so.0, but libspice.so.0 is on > /usr/lib64/tclspice/libspice.so.0. Maybe it's not a real library name conflict > and tclspice shouldn't actually have a libspice.so.0 RPM provides. if i have tclspice installed, I can install/remove kvm without qspice* smoothly, and of course, I can use qemu-kvm/qemu-img only if qspice is installed manually.
Eduardo, is it enough that you just add the following line to the kvm spec? Requires: qspice-libs
An explicit qspice-libs dependency is enough short term (I did this on the KVM package, already), but long term it is preferable that we don't have this library name conflict. The next major version of the spice library may be an opportunity to solve the conflict.
Following Eduardo's suggestion in Comment #4, I've fixed it for RHEL-6 (rhbz# 573349). Closing this bug with reason fixed-in-next-release.