Re: error in loading shared libraries
Paul Miller wrote:
<snip>
> As for the jed problem. You might try using the ldd command. It tells
> you what libraries a library or executable is compiled against. eg:
>
> gemini:pmiller:~\:$ldd /usr/bin/jed
> libslang.so.1 => /lib/libslang.so.1 (0x40011000)
> libgpm.so.1 => /usr/lib/libgpm.so.1 (0x40058000)
> libm.so.6 => /lib/libm.so.6 (0x4005d000)
> libc.so.6 => /lib/libc.so.6 (0x40077000)
> libncurses.so.4 => /lib/libncurses.so.4 (0x4011c000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> gemini:pmiller:~\:$ldd /usr/lib/libgpm.so.1
> libc.so.6 => /lib/libc.so.6 (0x4000a000)
> libncurses.so.4 => /lib/libncurses.so.4 (0x400af000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
>
> Hopefully this will point you to the offending library, and you can then
> reinstall it. You will easily notice that a library is not found as it
> tells you in the output of ldd.
I did this and found:
~$ ldd /usr/lib/libgpm.so.1
libc.so.6 => /lib/libc.so.6 (0x40008000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
I found out that 'ld-linux.so.2' (which looks to be missing) is in
'libc6'. I purged and reinstalled 'libc6' and still get:
~$ jed
jed: error in loading shared libraries
/usr/lib/libgpm.so.1: undefined symbol: stdscr
Ldd still shows,
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
It doesn't seem like libc6 purged real cleanly, I did,
~# dpkg --purge remove-essential libc6
There were no errors when I reinstalled the package though. Is it
possible that the package I have just didn't contain the one library? I
tried 'dpkg -L libc6' and it states that that library exists in the
package. Any thoughts?
Thanks,
kent
Reply to: