pbzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file
来源:互联网 发布:阿里云 aws对比 编辑:程序博客网 时间:2024/06/07 01:37
OS : centos 7
pbzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
刚开始,以为此软件没有安装,于是yum install bzip2-libs
。安装之后,依然报错。后来使用find / -name libbz2.so
查找文件位置,发现都在/usr/lib64/目录下,然后在此目录中,
做一个软链接libbz2.so.1.0,指向已经有的libbz2.so.1.0.6
[root@username run]# cd /usr/lib64/[root@username lib64]# ls -alhtr | grep libbz2.so.1-rwxr-xr-x. 1 root root 67K Nov 20 2015 libbz2.so.1.0.6lrwxrwxrwx. 1 root root 15 Aug 21 11:59 libbz2.so.1 -> libbz2.so.1.0.6lrwxrwxrwx. 1 root root 11 Sep 8 12:17 libbz2.so -> libbz2.so.1[root@username lib64]# ln -s libbz2.so.1.0.6 libbz2.so.1.0 [root@username lib64]# ls -alhtr | grep libbz2.so.1-rwxr-xr-x. 1 root root 67K Nov 20 2015 libbz2.so.1.0.6lrwxrwxrwx. 1 root root 15 Aug 21 11:59 libbz2.so.1 -> libbz2.so.1.0.6lrwxrwxrwx. 1 root root 11 Sep 8 12:17 libbz2.so -> libbz2.so.1lrwxrwxrwx. 1 root root 15 Nov 8 01:34 libbz2.so.1.0 -> libbz2.so.1.0.6
至此,解决!
另外,在使用上述办法解决之前,使用了另外一种办法,在我这里,没有解决此问题,这种办法,可能适用于其他情况.
出现这类错误表示,系统不知道xxx.so放在哪个目录下,这时候就要在/etc/ld.so.conf中加入xxx.so所在的目录。
一般而言,有很多的so会存放在/usr/local/lib这个目录底下,去这个目录底下找,果然发现自己所需要的.so文件。
所以,在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。
我将/ussr/lib64添加到/etc/ld.so.conf,没有产生效果。
参考
1 https://zhidao.baidu.com/question/1110369238916863579.html
阅读全文
0 0
- pbzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file
- python: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file:
- python3: error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file:
- error while loading shared libraries cannot open shared object file
- error while loading shared libraries| cannot open shared object file
- Error While Loading Shared Libraries, Cannot Open Shared Object File
- Error While Loading Shared Libraries, 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: 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
- error while loading shared libraries: XXX.so: cannot open shared object file: No such file...
- jps: error while loading shared libraries: libjli.so: cannot open shared object file: No such file..
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.6.5: cannot open shared object file: No such file
- Error: while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- 生产者/消费者问题Java详解
- java.util.concurrent.Callable
- 欧拉函数板子
- MyBatis学习总结(一)
- mongodb批量改字段类型
- pbzip2: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file
- jvm学习记录--04 垃圾回收概念与垃圾回收算法
- 两种方法快速搞定高版本的cad图怎么在低版本中打开
- [P3811][模板]乘法逆元
- Deep Face Recognition读书笔记
- caffe上手:如何导出caffemodel参数
- Map四种获取key和value值的方法,以及对map中的元素排序(转载)
- 导入excel
- Java面向对象习题