(转)解决Linux:cannot open shared object file: No such file or directory 类似问题
来源:互联网 发布:java时间的正则表达式 编辑:程序博客网 时间:2024/06/10 08:19
我遇到 error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 这样的问题是在安装memcached的时候遇到的。
我按别人的攻略安装了libevent和memcached之后却发现在执行的时候出现了。 error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 这个错误提示。
解决类似问题的步骤我相信我的做法可以通用。
1. 首先 find / -name libevent-1.4.so.2 找到缺少的链接文件到底在那儿。
2. LD_DEBUG=libs /usr/local/bin/memcached -v
3. 从Debug信息中就知道程序去哪里找链接库了。我这边程序去 trying file=/usr/lib/libevent-1.4.so.2 而我的链接库的实际存储位置是 /usr/local/lib/libevent-1.4.so.2
4. 做一个软连接 ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib/libevent-1.4.so.2
5. 搞定。
- (转)解决Linux:cannot open shared object file: No such file or directory 类似问题
- 解决Linux: error while loading shared libraries: ...: cannot open shared object file: No such file or directory 类似问题
- 解决 libstdc++.so.5: cannot open shared object file: No such file or directory 问题
- Linux: cannot open shared object file xxx.so: No such file or directory 解决
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- cannot open shared object file: No such file or directory
- 关于cannot open shared object file: No such file or directory 的解决。
- cannot open shared object file: No such file or directory解决
- 关于cannot open shared object file: No such file or directory 的解决。
- cannot open shared object file: No such file or directory解决
- libopencv_shape.so.3.0: cannot open shared object file: No such file or directory 解决笔记
- cannot open shared object file: No such file or directory如何解决
- 解决错误 libmysqlclient.so.18: cannot open shared object file: No such file or directory
- 解决ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- Apache、struts1、struts2文件上传下载的3种方式
- IOS! GO!
- Flex 3 发现之旅:AdvancedDataGrid的使用
- 你熬得过1万小时,10多年,30年吗
- 进制转换相关附录知识
- (转)解决Linux:cannot open shared object file: No such file or directory 类似问题
- 解决方案、项目、程序集、命名空间之间的联系与区别
- 哪些oracle对象可以重命名
- vb keybd_event api
- linux下find ... |xargs 和 -exec
- 敏捷方法之极限编程(XP)和Scrum区别
- priority_queue的使用
- linux线程同步
- CCS编译中常常遇到的问题以及解决办法