Home > Backend Development > C++ > How to Fix the 'GLIBCXX_3.4.15 Not Found' Error in Ubuntu?

How to Fix the 'GLIBCXX_3.4.15 Not Found' Error in Ubuntu?

Patricia Arquette
Release: 2024-11-18 10:19:02
Original
410 people have browsed it

How to Fix the

GLIBCXX_3.4.15 Not Found: Resolving the Error in Ubuntu

When attempting to run compiled programs, an error message indicating that "GLIBCXX_3.4.15 not found" can arise. This error is encountered due to the absence of the necessary version of the GLIBCXX library.

Issue Resolution

To resolve this issue, one can install the GLIBCXX_3.4.15 package, which is a dependency for running specific programs. As described in the given solution, the user encountered a separate problem while compiling gcc. In their case, the installation via "sudo make install" did not resolve the issue.

Alternative Solution

The alternative solution involves manually locating the required library file and pointing the operating system to it. In this case, the user identified the library file "libstdc .so.6.0.15" within the gcc source code directory.

Implementation

To implement this solution, follow these steps:

  1. Copy the file "libstdc .so.6.0.15" from the gcc source code directory to "/usr/lib."
  2. Create a symbolic link from "libstdc .so.6" to "libstdc .so.6.0.15." This redirects the operating system to the newly copied library file.

By completing these steps, the issue of GLIBCXX_3.4.15 not being found is resolved, and the compiled programs can function as expected.

The above is the detailed content of How to Fix the 'GLIBCXX_3.4.15 Not Found' Error 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