[libvirt-users] Fail to install libvirt

Du Jun dj199008 at gmail.com
Mon Mar 10 03:45:38 UTC 2014


Hi all,

I am trying to install libvirt from source code(I have some version of
libvirt installed before and I intend to overwrite it), my workflow is
shown below,

#!/bin/sh
apt-get install gnutls-bin libgnutls-dev -y
apt-get install libxml++2.6-2  libxml++2.6-dev -y
apt-get install libdevmapper-dev -y
apt-get install libpciaccess-dev -y
apt-get install python-dev -y
apt-get install libnl-dev -y

if [ ! -f ./libvirt-1.1.1 ]; then
wget http://libvirt.org/sources/libvirt-1.1.1.tar.gz
fi

tar -xzvf ./libvirt-1.1.1.tar.gz
cd ./libvirt-1.1.1
./configure --prefix=/usr --localstatedir=/var  --sysconfdir=/etc
make
make install

I have no trouble in configure, make, and make install. However, after make
installfinishing, when I type virsh --version, I get the following error
message:

virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_1.1.1' not
found (required by virsh)

I wonder what's wrong with that? Please help, thanks!

--

Best Regards,

Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140310/7adebba1/attachment.htm>


More information about the libvirt-users mailing list