[Libguestfs] libguestfs-test-tool error, libcap.so - no such file

Richard W.M. Jones rjones at redhat.com
Fri Jan 18 17:19:19 UTC 2013


On Fri, Jan 18, 2013 at 12:02:35PM -0500, Skippy VonDrake wrote:
> > The febootstrap output indicates that libcap2 has not been included in
> > the appliance, which is ... a bug!
> >
> > Try this patch:
> >
> > https://github.com/libguestfs/libguestfs/commit/24c4178749817639ecf9ad61f7de2b0f90f6ba3b
> >
> > I guess that on Fedora libcap must be pulled in as an implicit dependency.
> 
> The patch worked to complete the test of 'quickcheck' with "TEST FINISHED OK".
> Thank you!
> 
> The 'make check' results have 1 failed test but it looks like that's
> from not having lvm2 configured.
> 
> make quickcheck output: http://pastebin.com/qkjjAz6C
> make check output: http://pastebin.com/FRmLaeE3
> 
> I still don't understand why after installing it on the system the
> libraries aren't linked up properly.
> 
> $ guestfish --version
> guestfish: error while loading shared libraries: libguestfs.so.0:
> cannot open shared object file: No such file or directory

Is /usr/local/lib in the dynamic linker path?  You might need
to add it to '/etc/ld.so.conf'.

> $ libguestfs-test-tool
> libguestfs-test-tool: error while loading shared libraries:
> libguestfs.so.0: cannot open shared object file: No such file or
> directory
> 
> $ ldd `which libguestfs-test-tool`
>         linux-vdso.so.1 =>  (0x00007fff325ff000)
>         libguestfs.so.0 => not found
>         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f12522a0000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007f125267e000)
> 
> 
> $ sudo find / -name 'libguestfs.so*' | xargs ls -l
> /usr/local/lib/libguestfs.so -> libguestfs.so.0.391.0
> /usr/local/lib/libguestfs.so.0 -> libguestfs.so.0.391.0
> /usr/local/lib/libguestfs.so.0.391.0
> 
> For now I'll stick in symbolic links to "patch" the system.
> And look at your suggestions regarding a static appliance.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list