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

Installing a library rpm: what is the last step please?



Hi,

I'm trying to run a Linux binary on an OpenBSD 3.7-stable PC 
with redhat_base-8.0p4  installed, but it is missing libtiff:

laptop72:redhat {533} ldd ~/bin/displaychm
/home/afarber/bin/displaychm:
        libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x55a28000)
        libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4ca36000)
        libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x4bd08000)
        libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x545db000)
        libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x48bdb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x4faaa000)
        libdl.so.2 => /lib/libdl.so.2 (0x562e3000)
        libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x4dad2000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x56928000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4d11f000)
        libm.so.6 => /lib/libm.so.6 (0x4ddea000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x4ef39000)
        libtiff.so.3 => not found
        libz.so.1 => /usr/lib/libz.so.1 (0x57b56000)
        libc.so.6 => /lib/libc.so.6 (0x4b9b2000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4d34d000)

So I have downloaded the rpm package, have run:

laptop72:redhat {520} rpm2cpio
~/3.7/desktop/rpm/libtiff-3.5.7-11.i386.rpm | sudo cpio -idv

and now have that library there:

laptop72:redhat {542} ll /usr/local/emul/redhat/usr/lib | grep tiff
 576 -rwxr-xr-x    1 root  wheel   264132 Aug 17 13:25 libtiff.so.3.5

Unfortunately the ldd output above hasn't changed yet.

Should I now just run /usr/local/emul/redhat/sbin/ldconfig
or do I have to chroot to somewhere before doing this?

Regards
Alex



Visit your host, monkey.org