首頁 > 後端開發 > C++ > 主體

如何解決 Ubuntu 中的'/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' Not Found”?

Barbara Streisand
發布: 2024-11-14 09:51:01
原創
796 人瀏覽過

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
      登入後複製
    • If found, copy the file to /usr/lib:

      sudo cp /path/to/libstdc++.so.6.0.15 /usr/lib
      登入後複製
    • 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
      登入後複製
  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
    登入後複製

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.

以上是如何解決 Ubuntu 中的'/usr/lib/libstdc .so.6: version `GLIBCXX_3.4.15' Not Found”?的詳細內容。更多資訊請關注PHP中文網其他相關文章!

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
作者最新文章
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板