eric@lucii.org on 8 Dec 2004 22:40:06 -0000 |
On Wed, Dec 08, 2004 at 12:55:41PM -0500, Stephen Gran wrote: > On Wed, Dec 08, 2004 at 12:21:15PM -0500, eric@lucii.org said: > > Anybody have any idea about how to fix this? > > > > I've recently noticed a strange behavior from my SuSE 9.1 system when I > > call on the pager, /usr/bin/less. > > > > Example: > > [eric]$ less fetchmail/fetchmail.archive.001.gz > > file: error while loading shared libraries: libmagic.so.1: cannot open > > shared object file: No such file or directory > > The linker (ld.so) cannot find libmagic.so.1, a shared library that less > needs to load at startup. > > `ldd /usr/bin/less` will confirm both that libmagic.so.1 is referenced and > not found. My guess is that Suse's dependency tracking is suboptimal - it > should not have allowed you to get in this situation in the first place. > However, I am fairly sure they should have shared library versions of > libmagic available. When I run the ldd command I get this: [eric]$ ldd -v /usr/bin/less linux-gate.so.1 => (0xffffe000) libncurses.so.5 => /lib/libncurses.so.5 (0x40037000) libc.so.6 => /lib/tls/libc.so.6 (0x4007c000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Version information: /usr/bin/less: libc.so.6 (GLIBC_2.2) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.1) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.3) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.0) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.3.4) => /lib/tls/libc.so.6 /lib/libncurses.so.5: libc.so.6 (GLIBC_2.3) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.1.3) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.1) => /lib/tls/libc.so.6 libc.so.6 (GLIBC_2.0) => /lib/tls/libc.so.6 /lib/tls/libc.so.6: ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2 ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2 No libmagic asked for! Very strange :-P > On rereading this, it may also be possible that you are just missing a > symlink: > > steve@gashuffer:~$ ll /usr/lib/libmagic.so.1 > lrwxrwxrwx 1 root root 17 2004-12-06 18:39 /usr/lib/libmagic.so.1 -> libmagic.so.1.0.0 > > Do you have a libmagic.so.1.0.0 ? If so, just (in the same directory) > link it as above. I cannot find a libmagic.so.* anywhere on the system. My good friend, rpmfind.net, located one (libmagic-4.07-1.i686.rpm) which I installed without trouble. I believe it's a problem with the compilation of /usr/bin/less. In either case, it's working now. > > I do find libmagic.a and libmagic.la files but no libmagic.so.1 file. > > These are for static linking at build time, and information for the > linker, respectively. They are not shared libraries. > > HTH, > -- > -------------------------------------------------------------------------- > | Stephen Gran | "Kill the Wabbit, Kill the Wabbit, Kill | > | steve@lobefin.net | the Wabbit!" -- Looney Tunes, "What's | > | http://www.lobefin.net/~steve | Opera Doc?" (1957, Chuck Jones) | > -------------------------------------------------------------------------- Helped immensely! Thanks! Eric -- ------------------------------------------------------------------------ # Eric Lucas ======================================================================== However beautiful the strategy, you should occasionally look at the results. -- Winston Churchill ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|