Home > Backend Development > C++ > body text

How to Resolve '/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' Not Found' in Ubuntu?

Barbara Streisand
Release: 2024-11-14 09:51:01
Original
795 people have browsed it

How to Resolve

Resolving the "/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' Not Found" Dilemma

In Ubuntu, encountering the error message "/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' not found" can hinder the execution of compiled programs. This issue arises when the required GLIBCXX version (3.4.15) is not available on the system.

To rectify the situation, refer to the following steps:

  1. Confirm GLIBCXX Dependency: Verify whether the programs you're attempting to run actually depend on GLIBCXX_3.4.15 by examining their dependencies.
  2. Update System Packages: Ensure that your system is up to date by running sudo apt update followed by sudo apt upgrade. This may install any missing library dependencies.
  3. Manually Install GLIBCXX_3.4.15:

    • Locate the missing library file:

      find / -name libstdc++.so.6.0.15
      Copy after login
    • If found, copy the file to /usr/lib:

      sudo cp /path/to/libstdc++.so.6.0.15 /usr/lib
      Copy after login
    • Create a symbolic link to direct libstdc .so.6 to the new library:

      sudo ln -sf /usr/lib/libstdc++.so.6.0.15 /usr/lib/libstdc++.so.6
      Copy after login
  4. Restart Applications: Once the missing library is present, restart any affected applications to verify if the issue has been resolved.
  5. Alternative Solution: If the above methods fail, you can try installing a separate package that provides GLIBCXX_3.4.15. For Debian-based systems, this package is usually named libstdc 6-x:

    sudo apt install libstdc++6-4.9
    Copy after login

Additional Note: It is recommended to reboot your system after making any changes to the system libraries to ensure proper configuration and avoid potential conflicts.

The above is the detailed content of How to Resolve '/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' Not Found' in Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template