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

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



"Mumia W.." <paduille.4061.mumia.w+nospam@earthlink.net> writes:

> On 04/06/2008 08:45 PM, Haines Brown wrote:
>> This a common error message, but a search on line didn't resolve it.
>>
>> I'm running debian etch. I installed an application, gmfsk, deb, which
>> went fine. But when I go to run it, I get, as either root or user:
>>
>>   gmfsk: error while loading shared libraries: libstdc++.so.5: cannot
>>   open shared object file: No such file or directory
>>
>> The application uses libstdc++6 >= 4.1.0, but the error suggests it is
>> turning instead to libstdc++.so.5.
>>
>> The libg++2.8.1.3-glibc2.2 is not installed.
>>
>
> Where did you get that copy of gmfsk from?

A couple years ago I had to compile it from source, but I now see that
it is a deb package. The package is what I installed. The package
description said it depended on libstdc++.so.6. However, to get it
started I had to install libstdc++.so.5.

> Please enter this command and show us its output:
>
> 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?

> Also, please show us the output of this command:
>
> ls -l /usr/lib/libstdc*

Yep, both now installed:

$ ls -l /usr/lib/libstdc*
lrwxrwxrwx 1 root root     18 2008-04-07 06:14 
           /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.7
-rw-r--r-- 1 root root 737624 2007-01-03 13:47 
           /usr/lib/libstdc++.so.5.0.7 
lrwxrwxrwx 1 root root     18 2007-04-22 09:40 
           /usr/lib/libstdc++.so.6 -> libstdc++.so.6.0.8
-rw-r--r-- 1 root root 909044 2006-12-10 09:45 
           /usr/lib/libstdc++.so.6.0.8

The logic of the situation seems almost as if gmfsk needed _both_
versions of the libstdc++ library.

-- 
 
       Haines Brown, KB1GRM

	 
        


Reply to: