错误输出:
Invalid MEX-file
'/usr/local/MATLAB/BSR/grouping/lib/ucm_mean_pb.mexa64':/usr/local/MATLAB/R2012a/bin/glnxa64/libstdc++.so.6: version
`GLIBCXX_3.4.15' not found (required by
/usr/local/MATLAB/BSR/grouping/lib/ucm_mean_pb.mexa64)
解决办法:
1.find where is libstdc++.so.6
if you don""t know where is libstdc++.so.6, just write on the terminal:
locate libstdc++.so.6
我的是在/usr/lib/x86_64-linux-gnu/libstdc++.so.6
2.建立软链接
sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/local/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6
/****************************************/
可能问题:
ln: failed to create symbolic link `/usr/local/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6': File exists
重命名备份一下目标文件
sudo mv /usr/local/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6 /usr/local/MATLAB/R2012a/sys/os/glnxa64/libstdc++.so.6.bak