Solve CentOS GLIBCXX_3.4.15 'not found

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.