Harish Vishwanath
2015-Mar-19 15:35 UTC
[libvirt-users] Building libvirt 1.2.13 from source
Hello I am trying to build libvirt 1.2.13 (latest) from source on a Ubuntu 14.04 64 bit box. After installing all the dependencies (libyajl, libdevmapper, libpciaccess, libnl), I could finish the build and install. However, invoking libvirtd throws this: root@ubuntu:/home/hvishwanath/Downloads/libvirt-1.2.13# libvirtd libvirtd: /usr/lib/libvirt-qemu.so.0: version `LIBVIRT_QEMU_1.2.3' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.9' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.3' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.11' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.7' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.12' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.5' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.6' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.8' not found (required by libvirtd) libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_1.2.13' not found (required by libvirtd) Any help is much appreciated. Regards, Harish
Michal Privoznik
2015-Mar-19 17:12 UTC
Re: [libvirt-users] Building libvirt 1.2.13 from source
On 19.03.2015 16:35, Harish Vishwanath wrote:> Hello > > I am trying to build libvirt 1.2.13 (latest) from source on a Ubuntu > 14.04 64 bit box. After installing all the dependencies (libyajl, > libdevmapper, libpciaccess, libnl), I could finish the build and > install. However, invoking libvirtd throws this: > > root@ubuntu:/home/hvishwanath/Downloads/libvirt-1.2.13# libvirtd > libvirtd: /usr/lib/libvirt-qemu.so.0: version `LIBVIRT_QEMU_1.2.3' not > found (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.9' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.3' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.11' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.7' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.12' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.5' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.6' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.8' not found > (required by libvirtd) > libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_1.2.13' not > found (required by libvirtd) > > Any help is much appreciated.What arguments have you passed to configure? I usually use: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64/ Michal
On 03/19/2015 09:35 AM, Harish Vishwanath wrote:> Hello > > I am trying to build libvirt 1.2.13 (latest) from source on a Ubuntu 14.04 > 64 bit box. After installing all the dependencies (libyajl, libdevmapper, > libpciaccess, libnl), I could finish the build and install. However, > invoking libvirtd throws this: > > root@ubuntu:/home/hvishwanath/Downloads/libvirt-1.2.13# libvirtd > libvirtd: /usr/lib/libvirt-qemu.so.0: version `LIBVIRT_QEMU_1.2.3' not > found (required by libvirtd)Usually, this is a sign of your self-built images conflicting with distro images (that is pulling in an older distro .so instead of your just-built .so), and often because you used different configure arguments than your distro. I don't build much on Ubuntu so I can't tell you the exact recipe to use, but I can recommend two possible solutions: 1. completely uninstall the pre-built distro version, so that you have only your self-built version accessible 2. when self-building, make sure you use the same configure arguments as your distro would do (on Fedora-based distros, you can do this with ./autogen.sh --system, when building from git) -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
----- Original Message ----- | From: "Harish Vishwanath" <harish.shastry@gmail.com> | To: "libvirt-users" <libvirt-users@redhat.com> | Sent: Thursday, March 19, 2015 11:35:53 PM | Subject: [libvirt-users] Building libvirt 1.2.13 from source | Hello | I am trying to build libvirt 1.2.13 (latest) from source on a Ubuntu 14.04 64 | bit box. After installing all the dependencies (libyajl, libdevmapper, | libpciaccess, libnl), I could finish the build and install. However, | invoking libvirtd throws this: | root@ubuntu:/home/hvishwanath/Downloads/libvirt-1.2.13# libvirtd | libvirtd: /usr/lib/libvirt-qemu.so.0: version `LIBVIRT_QEMU_1.2.3' not found | (required by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.9' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.3' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.11' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.7' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.12' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.5' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.6' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_1.2.8' not found (required | by libvirtd) | libvirtd: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_1.2.13' not found | (required by libvirtd) | Any help is much appreciated. I usually try to create the correct soft link for libvirt.so.0/libvirt-qemu.so.0 when I met this. like below: # ldd `which libvirtd` linux-vdso.so.1 => (0x00007ffc64e92000) libvirt-lxc.so.0 => /lib64/libvirt-lxc.so.0 (0x00007f2206e30000) libvirt-qemu.so.0 => /lib64/libvirt-qemu.so.0 (0x00007f2206c2c000) libvirt.so.0 => not found .... # ln -s /usr/lib64/libvirt.so.0.1002.14 /usr/lib64/libvirt.so.0 # ldd `which libvirtd` linux-vdso.so.1 => (0x00007ffd42327000) libvirt-lxc.so.0 => /lib64/libvirt-lxc.so.0 (0x00007fbe43a1e000) libvirt-qemu.so.0 => /lib64/libvirt-qemu.so.0 (0x00007fbe4381a000) libvirt.so.0 => /lib64/libvirt.so.0 (0x00007fbe432e0000) .... # libvirtd | Regards, | Harish | _______________________________________________ | libvirt-users mailing list | libvirt-users@redhat.com | https://www.redhat.com/mailman/listinfo/libvirt-users -- Regards shyu