Solve CentOS GLIBCXX_3.4.15 'not found
The following error message is displayed during compilation:
./Usr/lib/libstdc ++. so.6: version 'glibcxx _ 3.4.15 'not found
If the 64-bit System reports the following error information:
/Usr/lib64/libstdc ++. so.6: version 'glibcxx _ 3.4.15 'not found
The reason is that there is no GLIBCXX_3.4.15 or a later version.
Enter the command to query the result:
[Root @ localhost ~] # Strings/usr/lib/libstdc ++. so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
We can see that GLIBCXX_3.4.15 does not exist in the current GCC version.
The 64-bit system command is:
[Root @ localhost ~] # Strings/usr/lib64/libstdc ++. so.6 | grep GLIBCXX
Use locate to view the file location:
Locate libstdc ++. so.6
Copy the file to/usr/lib64 and create a link.
[Root @ localhost x86_64-linux-gnu] # cp libstdc ++. so.6.0.17/usr/lib64
[Root @ localhost x86_64-linux-gnu] #/usr/lib
[Root @ localhost lib64] # rm libstdc ++. so.6
[Root @ localhost lib64] # ln libstdc ++. so.6.0.17 libstdc ++. so.6
Re-establish a soft connection, and then enter the command to query the result:
[Root @ localhost lib] # strings/usr/lib/libstdc ++. so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_DEBUG_MESSAGE_LENGTH
You have installed GLIBCXX_3.4.15.
Resolved.