Unable to load libstdc++.so.5 on Ubuntu Linux
Do you really have /usr/lib/libstdc++.so.5
, in addition to /usr/lib/libstdc++.so.6
? The two are not compatible (in the sense that a program that requires one won't work with the other, of course you can install both). You'll need to install the libstd++5
package.
Ubuntu 10.04 no longer has libstdc++5
, but if you need it, you can grab the package from the backports repository. It was reintroduced in subsequent releases.
Related videos on Youtube
user962449
Updated on September 17, 2022Comments
-
user962449 almost 2 years
The title can be a bit confusing, but how can you process an array and return the value of the key based on a value given. This is basically for an array library that converts database meta-data into human-readable format.
Example:
$countries = array('US'=>'United States','MX'=>'Mexico');
The above array would be considered an array library. So when I do a query and in my results I only have the two country code, I would then need to convert that into human-readable format. Is there a function that if I send it the two country code it will return the human-readable format. This function would then need to be reusable with other array libraries. Example function:
function covert_to_human($key, $array_library)
-
Gilles 'SO- stop being evil' almost 14 yearsapparently
xtensoftphone
is a 32-bit executable; do you have a 32-bitlibstdc++.so.5
, or only a 64-bit one? What doesfile -L /usr/lib*/libstdc++.so.5
show? -
Orangepill about 11 yearswhy not use use
$array_library[$key]
-
Admin about 11 yearswhat is the 'human-readable format' you wish to return?
-
user962449 about 11 yearslol @Orangepill I didn't think of that. I guess I was overlooking at it :/
-
-
sleske almost 14 years-1 This is more likely to further complicate matters. Libraries under /usr/lib should be picked up without LD_LIBRARY_PATH.
-
Gilo almost 14 yearsI do have 5 and 6 installed. The program is not requiring both, only 5, as shown by the ldd output above.
-
Gilo almost 14 yearsSee details added above
-
Gilles 'SO- stop being evil' almost 14 yearsFor a library in
/usr/lib
, the package manager should have runldconfig
. For anyone with a similar problem: if you install a library manually, put it in/usr/local/lib
, and runldconfig
afterwards. -
Gilo almost 14 yearsI installed 5 from a .deb
-
Gilles 'SO- stop being evil' almost 14 years@Blaine: do you have a 32-bit or 64-bit system? If you installed a 64-bit library from a .deb, it won't work with your 32-bit executable.
-
Admin about 11 yearsneed to add a loop if he wants to send multiple $key values, which i think he deos
-
Flying Fisher over 9 yearsJust run
sudo apt-get install libstdc++5