Virt-Viewer libspice-client-glib dependency

Victor Toso victortoso at redhat.com
Thu Feb 17 11:42:32 UTC 2022


Hi,

On Thu, Feb 17, 2022 at 01:09:18PM +0530, Sai Kiran Kumar Reddy wrote:
> Hi,
> 
> I am Sai Kiran. I am trying to build virt-viewer-11.0, on my LInux From
> Scratch(LFS) machine. I have installed all the dependencies of virt-viewer.
> I have built the virt-viewer, with spice enabled. When I run the
> virt-viewer command, I get the following error
> "libspice-client-glib-2.0.so.8: cannot open shared object file: No such
> file or directory. " But the shared object is present in "/usr/lib64".
> 
> I am not sure what the issue is. It would be of great help to
> me if someone could help me out here.

Well, the issue is that the binary can't find the shared library.
You can run ldd in the binary to see this kind of issues, for
instance:

  $ ldd /usr/bin/virt-viewer | grep -i spice

  libspice-client-glib-2.0.so.8 => /lib64/libspice-client-glib-2.0.so.8 (0x00007fe9526c6000)
  libspice-client-gtk-3.0.so.5 => /lib64/libspice-client-gtk-3.0.so.5 (0x00007fe95267c000)

In your case the output is expected to be:

  libspice-client-glib-2.0.so.8 => not found
  libspice-client-gtk-3.0.so.5 => not found

You can fix this with LD_LIBRARY_PATH environment variable,
adding the path to the folder with the shared library.

Sorry, I'm not familiar with LFS.

Cheers,
Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20220217/a6eb1361/attachment.sig>


More information about the virt-tools-list mailing list