运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
来源:互联网 发布:韩国人评论上瘾网络剧 编辑:程序博客网 时间:2024/06/05 09:35
转自:http://blog.csdn.net/newthinker_wei/article/details/8843133
链接时可以通过-L和-l来指定自己的库,因此链接可以通过,但是运行时,系统仍无法找到指定的库,需要简单配置一下。
解决方法:
可以直接在将自己的库所在路径添加到/etc/ld.so.conf文件中。但一般这个文件中的内容都是一句“include /etc/ld.so.conf.d/*.conf”,因此最好在/etc/ld.so.conf.d/目录下新建一个文件 , 如“xxx.conf”,然后将自己的库所在路径添加到这个conf文件中。
修改完文件后,以root身份运行 /sbin/ldconfig-v 。这一步必不可少,别丢了。
这时重新运行自己的程序,就没有问题了。
0 0
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- Linux运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fil
- error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- error while loading shared libraries: XXX.so: cannot open shared object file: No such file...
- error while loading shared libraries: libmkl_rt.so: cannot open shared object file: No such file or
- error while loading shared libraries: ***.so: cannot open shared object file: No such file or direct
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- glpsol: error while loading shared libraries: libglpk.so.0: cannot open shared object file: No such
- linux加载共享问题error while loading shared libraries: xxx.so.0:cannot open shared object file: No such fi
- error while loading shared libraries: xxx.so.0:cannot open shared object file:的错误解决
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file
- error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file.....
- error while loading shared libraries: libiw.so.29: cannot open shared object file: No such file
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file
- leetcode 287 Find the Duplicate Number
- 如果我来应聘产品经理岗位(二)
- nginx学习(五) http模块
- jquery瀑布流下拉加载(position定位版)
- 数组指针和指针数组
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 关于git无法提交到远程库的问题
- 求出1--100之间的素数
- mysql5.7新特性
- c++ 算法设计与分析(第四版) 流水作业调度
- Linux进程管理
- 用栈来实现括号匹配问题
- Xcode 增强开发效率的插件
- mysql5.7新特性