usr/bin/ld: cannot find 错误解决方法
来源:互联网 发布:想学游戏编程 编辑:程序博客网 时间:2024/05/16 07:52
通常在软件编译时出现的usr/bin/ld: cannot find -lxxx的错误,主要的原因是库文件并没有导入的ld检索目录中。
解决方式:
1. 确认库文件是否存在,比如-l123, 在/usr/lib, /usr/local/lib,或者其他自定义的lib下有无lib123.so, 如果只是存在lib123.so.1,那么可以通过ln -sv lib123.so.1 lib123.so,建立一个连接重建lib123.so.
2. 检查/etc/ld.so.conf中的库文件路径是否正确,如果库文件不是使用系统路径,/usr/lib, /usr/local/lib, 那么必须在文件中加入.
3. ldconfig 重建ld.so.cache文件,ld的库文件检索目录存放文件。尤其刚刚编译安装的软件,必须运行ldconfig,才能将新安装的库文件导入ld.so.cache.
4. 测试,gcc -l123 --verbose.
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- usr/bin/ld: cannot find 错误解决方法
- /usr/bin/ld: cannot find -l* 错误的解决方法
- /usr/bin/ld: cannot find -lcrypto 错误的解决方法
- /usr/bin/ld: cannot find -l* 错误的解决方法
- /usr/bin/ld: cannot find -lX11解决方法
- /usr/bin/ld: cannot find -lmysqlclient 解决方法
- /usr/bin/ld: cannot find -lmysqlclient解决方法
- Android 编译错误:/usr/bin/ld: cannot find -luuid,/usr/bin/ld: cannot find -llzo2
- /usr/bin/ld: cannot find -l* 错误的解决方法……
- 编译时遇到 /usr/bin/ld: cannot find -lxxx 错误的解决方法
- /usr/bin/ld:cannot find -lGL的解决方法
- Linux提示 /usr/bin/ld:cannot find-lxxx 系列解决方法
- 遇到usr/bin/ld: cannot find -lcufft解决方法。
- /usr/bin/ld: cannot find -lm的解决方法
- 金山快盘+SVN实现版本控制工具
- store source
- qdwgjhdskf1101
- 二叉树三种遍历的非递归算法(背诵版)本贴给出二叉树先序、中序、后序三种遍历的非递归算法,此三个算法可视为标准算法,直接用于答题。
- Understanding Unix/Linux Programming 笔记:chapter 14:线程机制:并发函数的使用
- usr/bin/ld: cannot find 错误解决方法
- Java解惑3——循环谜题(易混淆12处)
- 各种排序算法的稳定性和时间复杂度小结
- Java中对象序列化的作用
- 无法写入文件到 NFS目录
- C++ Unicode 写文件流问题
- Java IO流学习总结
- HTC one 移动TD版(M7CDTU) 与 国际版(M7UL)内核区别(从配置文件入手),草稿
- solib-absolute-prefix 和solib-search-path的区别