linux - 加载共享库 libstdc++.so.5 时出错

标签 linux ubuntu shared-libraries libstdc++

我正在尝试运行一个名为 GlimmerHMM 的程序,但是当我尝试调用该程序时出现此错误:

./glimmerhmm_linux
./glimmerhmm_linux: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

所以我尝试下载并安装:

sudo apt-get install libstdc++5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
html2text libmail-sendmail-perl libsys-hostname-long-perl
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed: libstdc++5
0 upgraded, 1 newly installed, 0 to remove and 183 not upgraded.
Need to get 255 kB of archives.
After this operation, 1,155 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/universe libstdc++5 amd64 1:3.3.6-25ubuntu1 [255 kB]
Fetched 255 kB in 4s (54.0 kB/s)                     
Selecting previously unselected package libstdc++5.
(Reading database ... 176303 files and directories currently installed.)
Unpacking libstdc++5 (from .../libstdc++5_1%3a3.3.6-25ubuntu1_amd64.deb) ...
Setting up libstdc++5 (1:3.3.6-25ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

但是我在调​​用程序的时候还是报同样的错误。提前致谢!

最佳答案

很有可能,如果你运行的程序太旧需要 libstdc++ v5,它也是一个 32 位应用程序,所以它不能使用(64 位)libstdc++5 你安装了。安装 ia32-libs 包。

关于linux - 加载共享库 libstdc++.so.5 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14350773/

相关文章:

ubuntu - ldd 不同的输出。相同的二进制文件不同的发行版

java - 提取普通Java包

ubuntu - 无法在 nginx 中配置 proxy_pass

linux - export 在 shell 脚本中不起作用,但通过 CLI 起作用

c - 从 OS X 上的 C 中的 dlopen()ed 动态库访问主程序全局变量

c - GCC 将包含程序集的静态库插入到动态库中

c - 如何在LINUX/C中打印 "dd mm yyyy hh mm sec"格式的时间

c - 为 Linux 内核编写内置对象?

linux - 领域允许-g不限制登录组

linux - 如何对 PuTTY 的 psftp.exe 进行 sudo su