Re: Virt-Viewer libspice-client-glib dependency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux