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

Re: error while loading shared libraries: libstdc++.so.5



"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
...
Couldn't find any package whose name or description matched
"libstdc++.so.5.0.7" 

It occurred to me that something else might need libstdc++.so.5, and so
decided against removing it, for it does not harm there, even if not
needed by this particular application.

-- 
 
       Haines Brown, KB1GRM

	 
        


Reply to: