Unable to load libstdc++.so.5 on Ubuntu Linux

71

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.

Share:
71

Related videos on Youtube

user962449
Author by

user962449

Updated on September 17, 2022

Comments

  • user962449
    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'
      Gilles 'SO- stop being evil' almost 14 years
      apparently xtensoftphone is a 32-bit executable; do you have a 32-bit libstdc++.so.5, or only a 64-bit one? What does file -L /usr/lib*/libstdc++.so.5 show?
    • Orangepill
      Orangepill about 11 years
      why not use use $array_library[$key]
    • Admin
      Admin about 11 years
      what is the 'human-readable format' you wish to return?
    • user962449
      user962449 about 11 years
      lol @Orangepill I didn't think of that. I guess I was overlooking at it :/
  • sleske
    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
    Gilo almost 14 years
    I do have 5 and 6 installed. The program is not requiring both, only 5, as shown by the ldd output above.
  • Gilo
    Gilo almost 14 years
    See details added above
  • Gilles 'SO- stop being evil'
    Gilles 'SO- stop being evil' almost 14 years
    For a library in /usr/lib, the package manager should have run ldconfig. For anyone with a similar problem: if you install a library manually, put it in /usr/local/lib, and run ldconfig afterwards.
  • Gilo
    Gilo almost 14 years
    I installed 5 from a .deb
  • Gilles 'SO- stop being evil'
    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
    Admin about 11 years
    need to add a loop if he wants to send multiple $key values, which i think he deos
  • Flying Fisher
    Flying Fisher over 9 years
    Just run sudo apt-get install libstdc++5