在linux下运行程序时,发现了error while loading shared libraries这种错误,一时间不知道解决办法,在网上搜索,终于解决了:./tests: error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or directory出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。一般而言,有很多的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。Linux中的configure、pkg-config、pkg_config_pathLinux内核中的“vga=”参数相关资讯 Linux使用教程
- 如何在 Linux 中安全擦除删除的文 (04/10/2014 06:12:05)
- Linux中profile的执行说明 (09/28/2012 06:16:01)
- Mac/Linux 多线程下载解决方案 (08/30/2012 07:39:07)
| - Linux下AutoTools工具集使用教程 (11/20/2012 12:13:57)
- Linux下根据端口号查询对应进程 (09/05/2012 06:14:34)
- Linux平台下HD 2000/3000/4000性能 (08/28/2012 06:28:48)
|
本文评论 查看全部评论 (0)