On 8/9/22 12:55, Jin Huang wrote:> Hi, everyone
> I built the libvirt 8.6.0 on my Ubuntu 20 system with the options like
this:
> meson build -Dsystem=true -Ddriver_interface=enabled
> -Ddriver_libvirtd=enabled -Ddriver_network=enabled -Ddriver_qemu=enabled
> -Ddriver_remote=enabled -Dnumactl=enabled -Dnumad=enabled
> -Dstorage_disk=enabled
>
> (1)After installation, when I tried to start the libvirtd, I get this
> error message:
> error : virNetworkObjAssignDefLocked:576 : operation failed: network
> 'default' already exists?with uuid
7477a9f5-02d3-4fbc-b0e8-d7229d39a6a2
>
> (2)When try the virsh command, I get this error message:
> virsh: /lib/x86_64-linux-gnu/libvirt-qemu.so.0: version
> `LIBVIRT_QEMU_8.2.0' not found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_8.0.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_8.5.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_6.10.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_7.7.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_7.8.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_7.2.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_7.1.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version `LIBVIRT_7.3.0' not
> found (required by virsh)
> virsh: /lib/x86_64-linux-gnu/libvirt.so.0: version
> `LIBVIRT_PRIVATE_8.6.0' not found (required by virsh)
>
> Could anyone give me some suggestions to fix these issues?
This is pretty much expected if you had libvirt installed from your
package manager (which I believe is the case because of the network
error). I don't know what the correct way to build a .deb package is,
but on rpm based distros I usually build a .tar.xz (meson dist) from
which I build a .rpm (rpmbuild -ta) and then install it.
Michal