ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file
来源:互联网 发布:java 汽车租赁管理系统 编辑:程序博客网 时间:2024/06/10 00:09
在linux主机执行ls命令时,报ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory问题,在网上百度,很多说是因为系统找不到libcap.so.2这个文件,找到libcap.so.2文件(通常在/usr/local/lib目录下),然后再去/etc目录下ld.so.conf文件中添加libcap.so.2的文件路径,再执行/sbin/ldconfig - v更新一下配置即可。
在测试主机上/usr/local/lib下没有找到libcap.so.2文件,在另一台主机上看到在/lib64目录下有一个libcap.so.2文件,下载下来之后上传到问题主机上执行/sbin/ldconfig -v 之后,再执行ls时
错误信息如下:
[toptea@hadoopName etc]$ ls
ls:libacl.so.1: version `ACL_1.2' not found (required by ls)
然后继续从正常的主机下载libacl.so.1文件,再/sbin/ldconfig - v 之后,问题解决。
0 0
- ls: error while loading shared libraries: libcap.so.2: 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: 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
- error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file
- error while loading shared libraries: libcudart.so.7.5: 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
- aapt: error while loading shared libraries: libc++.so: cannot open shared object file: No such file
- error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file
- error while loading shared libraries: ***.so: cannot open shared object file: No such file or direct
- standard BAPI(BAPI_ACC_DOCUMENT_POST) to park document
- IOS openURL的使用(iOS调用系统电话、浏览器、地图、邮件等)
- Android获取全局Context的方式
- leetcode 223. Rectangle Area
- spring MVC配置详解
- ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file
- Oracle中自动生成的guid与.Net中的guid的交互
- tomcat端口被占用
- IOS 多用类型常量,少用#define预处理指令
- 深入理解Activity启动流程
- android 白屏问题或者设置页面的闪屏
- How to Write High-DPI Applications 参考链接
- 7C分解百位数
- 常见的竞品分析有哪些类型?