Re: [Libguestfs] libguestfs-test-tool error, libcap.so - no such file
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/24c4178749817639ecf9ad61f7de...
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/
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'.
My linux skills are "questionable' but I'd thought something like that would have already been properly configured when gcc gets pulled down and installed with a package manager. But I'm learning... My ld.so.conf file references all '*.conf' in /etc/ld.so.conf.d/. And /usr/local/lib is present in one of them. In order to get libguestfs-test-tool to work I made this link: sudo ln -s /usr/local/lib/libguestfs.so /lib/x86_64-linux-gnu/libguestfs.so.0 If there is a more correct solution please let me know.
On Fri, Jan 18, 2013 at 12:32:02PM -0500, Skippy VonDrake wrote:
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'.
My linux skills are "questionable' but I'd thought something like that would have already been properly configured when gcc gets pulled down and installed with a package manager. But I'm learning...
My ld.so.conf file references all '*.conf' in /etc/ld.so.conf.d/. And /usr/local/lib is present in one of them.
Perhaps running '/sbin/ldconfig' would help?
In order to get libguestfs-test-tool to work I made this link: sudo ln -s /usr/local/lib/libguestfs.so /lib/x86_64-linux-gnu/libguestfs.so.0
If there is a more correct solution please let me know.
Well that's a pretty horrible solution, but if it works, then it works :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
participants (2)
-
Richard W.M. Jones -
Skippy VonDrake