On 06/26/2012 04:26 PM, Richard W.M. Jones wrote:
BTW I never use 'make install' (except in RPM spec files).
OK, but I wonder if RPM spec can hit the same wrong thing ?
Instead I use the ./run script in the top level directory. See the
README file.
Yes, I know this.
See below,
[root@gaowanlong libguestfs]# ldd `which virt-filesystems `
linux-vdso.so.1 => (0x00007fff86abe000)
/usr/lib64/libXft-infinality/libXft.so.2 (0x0000003a62000000)
/usr/lib64/freetype-infinality/libfreetype.so.6 (0x0000003a5fe00000)
======> libguestfs.so.0 => /usr/local/lib/libguestfs.so.0 (0x00007f06b8839000)
libc.so.6 => /lib64/libc.so.6 (0x000000319ac00000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x0000003a60200000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00000036aba00000)
libX11.so.6 => /lib64/libX11.so.6 (0x00000036ab200000)
libm.so.6 => /lib64/libm.so.6 (0x000000319bc00000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00000036af200000)
libxml2.so.2 => /lib64/libxml2.so.2 (0x00000031a2000000)
librt.so.1 => /lib64/librt.so.1 (0x000000319b800000)
/lib64/ld-linux-x86-64.so.2 (0x000000319a400000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x000000319fc00000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00000036aae00000)
libdl.so.2 => /lib64/libdl.so.2 (0x000000319b400000)
libz.so.1 => /lib64/libz.so.1 (0x000000319c000000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x000000319b000000)
libXau.so.6 => /lib64/libXau.so.6 (0x000000319e800000)
[root@gaowanlong libguestfs]# ldd `which virt-sysprep`
linux-vdso.so.1 => (0x00007fffd13ff000)
/usr/lib64/libXft-infinality/libXft.so.2 (0x0000003a62000000)
/usr/lib64/freetype-infinality/libfreetype.so.6 (0x0000003a5fe00000)
====> libguestfs.so.0 => not found
libncurses.so.5 => /lib64/libncurses.so.5 (0x00000031b1000000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00000031ad800000)
libm.so.6 => /lib64/libm.so.6 (0x000000319bc00000)
libdl.so.2 => /lib64/libdl.so.2 (0x000000319b400000)
libc.so.6 => /lib64/libc.so.6 (0x000000319ac00000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x0000003a60200000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00000036aba00000)
libX11.so.6 => /lib64/libX11.so.6 (0x00000036ab200000)
/lib64/ld-linux-x86-64.so.2 (0x000000319a400000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x000000319fc00000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00000036aae00000)
libXau.so.6 => /lib64/libXau.so.6 (0x000000319e800000)
Our virt-filesystems can find out libguestfs.so.0, but virt-sysprep not.
So, I think there must be some thing wrong here.
Thanks,
Wanlong Gao
Rich.