usr/bin/ld: cannot find 错误解决方法
来源:互联网 发布:nga宁芙淘宝店名 编辑:程序博客网 时间:2024/05/21 03:57
通常在软件编译时出现的usr/bin/ld: cannot find -lxxx的错误或者....so undefine xxxx,主要的原因是库文件并没有导入的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.
0 0
- 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的解决方法
- 【Unity】Shader编程 基础总结
- ORACLE定期清理INACTIVE会话
- 共享微信JSSDK的access_token.json
- Windows 7 默认情况下没有 tftp 和 telnet 命令.
- Android创建快捷方式
- usr/bin/ld: cannot find 错误解决方法
- 密码找回漏洞总结
- 修改tomcat项目的图标
- NSPredicate --(谓词查询) Foundation提供的类,它指定数据被获取或者过滤的方式
- Postgresql插入数据返回自增id
- Stay Hungry, Stay Foolish 的由来 --2005斯坦福大学05年毕业演讲
- Android5.0 ToolBar
- 【我们都爱Paul Hegarty】斯坦福IOS8公开课个人笔记34 Info.plist、Capabilities
- 遍历一维、二维、三维数组