试图找到并安装libstdc ++。so.5,用MATLAB运行C ++ [英] Trying to find and install libstdc++.so.5 to run C++ with mex for MATLAB

查看:256
本文介绍了试图找到并安装libstdc ++。so.5,用MATLAB运行C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 BGL MATLAB 找到此处 fileexchange 。在这个库中使用 Ubuntu 10.04 LTS 下的函数时,我收到此错误(Windows下无法正常运行此错误)。

  ???无效的MEX文件
'/ home / alex / Documents / MATLAB / MATLABsvnWorkingDir / Bloom / graphAnalysis / analysisAttempt2 / functi onsDownloaded / matlab_bgl-4.0.1 / matlab_bgl / private / components_mex.mexglx':
libstdc ++。 so.5:无法打开共享对象文件:没有这样的文件或
目录。
==>错误组件在42
[ci sizes] = components_mex(A);
==>错误moduleize_graphs_Alex_hugeMats_BlondelCode at 16
[comnts,〜] = components(graph);

整个问题似乎与 libstdc ++。so.5 。我在synatpic包管理器中找不到。有这个线程讨论了问题,但我没有任何进展尝试过这些步骤。 / p>

我尝试了这里列出的解决方案

  alex @ alex-laptop:〜/ Desktop $ sudo apt-get install libstdc ++。so.5 
阅读包列表...完成
构建依赖关系树
读取状态信息...完成
E:找不到包libstdc ++。so.5
alex @ alex笔记本电脑:〜/ Desktop $

我也尝试过在网络上找到的其他解决方案没有解决问题。

解决方案

尝试使用



sudo apt-get install libstdc ++ 5



这应该安装包,包括所需的lib。


I am using the BGL libraries for MATLAB found here on fileexchange. I get this error when using a function from this library under Ubuntu 10.04 LTS (this error did not occur under Windows, where it worked normally).

??? Invalid MEX-file
'/home/alex/Documents/MATLAB/MATLABsvnWorkingDir/Bloom/graphAnalysis/analysisAttempt2/functi    onsDownloaded/matlab_bgl-4.0.1/matlab_bgl/private/components_mex.mexglx':
libstdc++.so.5: cannot open shared object file: No such file or
directory.
Error in ==> components at 42
[ci sizes] = components_mex(A);
Error in ==> modularize_graphs_Alex_hugeMats_BlondelCode at 16
[comnts,~] = components(graph);

The whole problem appears to be with libstdc++.so.5. I cannot find it in the synatpic package manager. There is this thread which discusses the problem but I have tried those steps without any progress.

I tried the solution listed here:

alex@alex-laptop:~/Desktop$ sudo apt-get install libstdc++.so.5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package libstdc++.so.5
alex@alex-laptop:~/Desktop$ 

I have also tried other solutions that I found on the web but nothing fixed the problem.

解决方案

Try using

sudo apt-get install libstdc++5

This should install the package, including the libs needed.

这篇关于试图找到并安装libstdc ++。so.5,用MATLAB运行C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆