Libstdc ++. so.6: Version 'glibcxx _ 3.4.11 'Not Found error and Solution

Source: Internet
Author: User

I downloaded an image segmentation program using Matlab combined with Mex (c-converted) on the Internet. The runtime environment is Linux 64 + Matlab.

Running error:

/Home/linuxprog/Matlab/bin/glnxa64/http://www.cnblogs.com/sys/ OS /glnxa64/libstdc?#.so.6: version 'glibcxx _ 3.4.11 'not found

Complete:

Invalid Mex-File '/home/Zhang/work/BSR/grouping/lib/buildw. mexa64 ':
/Usr/local/Matlab/r2011b/bin/glnxa64/http://www.cnblogs.com/sys/ OS /glnxa64/libstdc++.so.6: version
'Glibcxx _ 3.4.11 'not found (required by/home/Zhang/work/BSR/grouping/lib/buildw. Mexico A64)

The following is a summary of my solution process:

First ~ /Sys/OS/glnxa64/libstdc ++. so.6, renamed libstdc ++. so.6 _ backup

Sudo MV libstdc ++. so.6 libstdc ++. so.6 _ backup

(20111019 can be called directly)

0. Copy/usr/lib/libstdc ++. so.6 in the system directory to the library directory of the application. For example, copy the file to the field "maid/sys/OS/glnxa64.

Blog:

Http://blog.sina.com.cn/s/blog_6cf6b58d0100q0r2.html

I tried it. I guess the reason is that simple replication changes the object's orientation and cannot point to the target object.

1. rm maid/sys/OS/glnxa64/libstdc ++. so.6

I tried it, but it failed. However, both articles in other methods have been put into practice and succeeded.

2. Blog: libstdc ++. so.6: Version 'glibcxx _ 3. 4. ** 'not found

Http://yq000cn.blog.163.com/blog/static/14369070201171653016852/

The following describes how to view the file libstdc ++. so.6:

$ Strings $ maid/sys/OS/glnxa64/libstdc ++. so.6 | grep "glibc"
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
Glibc_2.1.3
Glibc_2.2
Glibc_2.3
Glibc_2.0
Glibc_2.1
Glibcxx_force_new

Linux:

$ Strings/usr/lib/libstdc ++. so.6 | grep "glibc"
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
Glibc_2.0
Glibc_2.3
Glibc_2.1
Glibc_2.1.3
Glibc_2.3.2
Glibc_2.2
Glibcxx_force_new
Glibcxx_debug_message_length

Perform the following operations:

Point the libstdc ++. So soft link of MATLAB to the Linux Library File

$ Ln-S/usr/IIb/libstdc ++. so.6 $ maid/sys/OS/glnxa64/libstdc ++. so.6

Done!

The other two web pages have been used for both 1 and 2, but the operation process is not detailed enough.

1. webpage:

Http://code.google.com/p/b-tk/issues/detail? Id = 8

This problem is due to the embedded libstc ++ dynamic library in MATLAB. instead of using the library in/usr/lib, Matlab forces to use its own, and then has an incompatibility with BTK libraries linked to/usr/lib/listdc ++. so.6.

The analysis given. Both methods 1 and 2 are successfully implemented. Interpretation of Method 1: Maybe it shocould be automatically moved from cmake during the installation step.

2. Forum:

Https://bbs.archlinux.org/viewtopic.php? Id = 86809

Both methods 1 and 2 are successful, but the details are not very clear. 1 successful explanation:

Going to $ maid/sys/OS/glnxa64 and moving libstdc ++ * And libgcc_s * Out Of The Way (no need to link, it'll automatically look for system versions) is just part of the puzzle.

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.