linux运行命令缺少依赖库的查找方法
来源:互联网 发布:网络道德现状 编辑:程序博客网 时间:2024/06/08 18:48
一般对于这种依赖的库找不到的情况,在Linux中可以通过设置LD_DEBUG环境变量来获得更多的信息
#LD_DEBUG=help lsValid options for the LD_DEBUG environment variable are: libs display library search paths reloc display relocation processing files display progress for input file symbols display symbol table processing bindings display information about symbol binding versions display version dependencies all all previous options combined statistics display relocation statistics unused determined unused DSOs help display this help message and exitTo direct the debugging output into a file instead of standard outputa filename can be specified using the LD_DEBUG_OUTPUT environment variable.
这里由于是库文件依赖有问题,则使用libs参数:
#LD_DEBUG=libs /u01/memcached/bin/memcached -h 30596: find library=libevent-1.4.so.2 [0]; searching 30596: search cache=/etc/ld.so.cache 30596: search path=/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64(system search path) 30596: trying file=/lib64/tls/x86_64/libevent-1.4.so.2 30596: trying file=/lib64/tls/libevent-1.4.so.2 30596: trying file=/lib64/x86_64/libevent-1.4.so.2 30596: trying file=/lib64/libevent-1.4.so.2 30596: trying file=/usr/lib64/tls/x86_64/libevent-1.4.so.2 30596: trying file=/usr/lib64/tls/libevent-1.4.so.2 30596: trying file=/usr/lib64/x86_64/libevent-1.4.so.2 30596: trying file=/usr/lib64/libevent-1.4.so.2 30596:/u01/memcached/bin/memcached: error while loading shared libraries: libevent-1.4.so.2:cannot open shared object file: No such file or directory
- linux运行命令缺少依赖库的查找方法
- Linux 缺少库,查找库的安装包的方法
- linux运行程序缺少库的解决方法
- 借助apt-file命令 可以查找缺少包所依赖的linux文件 然后用 apt-get install 安装所对应的文件
- Qt查找依赖库的简单方法
- linux四种查找命令的方法
- centos7下安装缺少的命令依赖包
- 完美解决编译缺少文件,apt-file search 命令去查找依赖。
- Linux insmod 缺少依赖模块
- Linux后台运行命令的方法
- linux命令的查找
- Linux的查找命令
- Linux的查找命令
- linux的查找命令
- linux的查找命令
- linux c之在终端如何依赖.o文件(静态链接库)运行C文件的命令
- symbian 程序缺少能力时的一个查找方法
- maven缺少依赖包,强制更新命令
- Android AIDL -通过一个比较完整的Demo快速运用
- 关系数据库设计范式介绍
- Java 判别TXT文档的编码方式
- 进程与线程的区别联系
- 各种基本算法实现小结(三)—— 树与二叉树
- linux运行命令缺少依赖库的查找方法
- Thrift 架构设计
- 使用jQuery创建简单的手风琴菜单
- 在64位Linux上安装MemCached
- 图搜索算法(一):图搜索的一般算法
- JQuery的自定义事件
- Web中无法调试解决方案
- 栈与堆的区别及其探讨
- CG实验4th:消隐