Re: error while loading shared libraries: libstdc++.so.5
On 07/04/2008, Haines Brown <brownh@hartford-hwp.com> wrote:
> "Joost Witteveen" <joosteto@gmail.com> writes:
>
> >> > ldd /usr/bin/gmfsk
> >>
> >>
> >> $ ldd /usr/bin/gmfsk | grep libstdc
> >> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb738e000)
> >>
> >> So, since I had libstsdc++.so.6 installed, and this is what it needs,
> >> why would installation of libstdc++.so.5 enabled it to work?
> >
> > If it were to happen to me, I'd assume it was because I didn't look
> > properly when I tried it without libcstc++.so.5 (and I'd try removing
> > the libstdc++5 version to verify).
> > But I won't assume you're as stupid as me, so maybe gmfsk executes
> > another binary that depends on libstdc++.so.5. To try that, uninstall
> > libstdc++.so.5, and run
> > strace -f gmfsk 2> stderr-file.txt
> > then search the stderr-file.txt for libstdc. If there is something
> > opening libstdc++.so.5, you should see the exec() line somewhere
> > above.
>
>
> Interesting, I couldn't remove libstdc++.so.5:
>
> $ ls -l /usr/lib | grep libstdc++.so*
> lrwxrwxrwx 1 root root 18 2008-04-07 06:14 libstdc++.so.5 ->
>
> libstdc++.so.5.0.7
>
> -rw-r--r-- 1 root root 737624 2007-01-03 13:47 libstdc++.so.5.0.7
> lrwxrwxrwx 1 root root 18 2007-04-22 09:40 libstdc++.so.6 ->
>
> libstdc++.so.6.0.8
>
> -rw-r--r-- 1 root root 909044 2006-12-10 09:45 libstdc++.so.6.0.8
>
> $ sudo aptitude remove libstdc++.so.5.0.7
$ dpkg -S libstdc++.so.5.0.7
libstdc++5: /usr/lib/libstdc++.so.5.0.7
So the package is called libstdc++5.
On my system not much depends on it, only lsb and g++-3.3 (old).
Reply to: