On Nov 10, 2008, at 15:39, Jonathan Allen wrote:
Package readline-devel-5.2-10.fc8.i386 already installed and latest
version
Package lftp-3.5.14-3.fc8.i386 already installed and latest version
# lftp
lftp: error while loading shared libraries: libreadline.so.5:
cannot open shared object file: No such file or directory
Something must be a bit broken on your system.
Do a little sleuthing to see if everything's where it's supposed to
be, and referencing what it should be.
Where the lftp package installed lftp:
$ rpm -ql lftp | grep lftp$
/usr/bin/lftp
/usr/lib/lftp
/usr/share/lftp
We note that it puts it into "/usr/bin/lftp".
See what executing lftp means to your shell:
$ command -V lftp
lftp is /usr/bin/lftp
Check the dynamically loaded libraries that references:
$ ldd $(command -v lftp)
linux-gate.so.1 => (0x00110000)
liblftp-jobs.so.0 => /usr/lib/liblftp-jobs.so.0 (0x00646000)
liblftp-tasks.so.0 => /usr/lib/liblftp-tasks.so.0 (0x00702000)
libreadline.so.5 => /lib/libreadline.so.5 (0x006ca000)
libutil.so.1 => /lib/libutil.so.1 (0x0015b000)
libncurses.so.5 => /lib/libncurses.so.5 (0x006a6000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00a3c000)
libdl.so.2 => /lib/libdl.so.2 (0x009e6000)
libc.so.6 => /lib/libc.so.6 (0x00850000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00b53000)
/lib/ld-linux.so.2 (0x00830000)
libtinfo.so.5 => /lib/libtinfo.so.5 (0x0068b000)
We can see it expects a /lib/libreadline.so.5.
Check that what we noted is really there:
$ ls -l /usr/bin/lftp /lib/libreadline.so.5
lrwxrwxrwx 1 root root 18 2008-05-16 05:00 /lib/libreadline.so.5 ->
libreadline.so.5.2
-rwxr-xr-x 1 root root 51300 2008-03-03 14:31 /usr/bin/lftp
So libreadline.so.5 is just a symbolic link to libreadline.so.5.2. See
if that's also there:
$ ls -l /lib/libreadline.so.5.2
-rwxr-xr-x 1 root root 218640 2008-03-23 21:46 /lib/libreadline.so.5.2
So that's what a working setup looks like. Some of this must look
different on your system, beyond the normal date, file size
differences caused by my example output being that of a Fedora 9 system.
A likely guess is that you have more than one copy, likely broken, of
lftp or readline.
You'll also have to decide which you'd prefer to make work, the Fedora-
provided and managed lftp package, or compiling your own binary by hand.