/usr/bin/ld: cannot find -l* 错误的解决方法
来源:互联网 发布:商务时空软件通科云盟 编辑:程序博客网 时间:2024/05/23 18:36
/usr/bin/ld: cannot find -l* 错误的解决方法
原因:
1.系统缺乏对应的库文件;
2.版本不对应;
3.库文件的链接错误;
4.库文件路径设置问题
解决办法:(原因1、2)
方法一:
可用yum install libtool-l*来安装yum -y install libtool-l*
譬如:
/usr/bin/ld: cannot find -lltdl
解决方法:
yum -y install libtool-ltdl*
方法二:
当方法一不能成功时,可从其他机器拷贝文件到本机/usr/lib64/。具体文件:/usr/lib64/目录下与lib*相关文件(主要是二个:lib*.a和lib*.so),最好是将lib*.a和lib*.so都链接到/usr/lib64目录下。
解决办法:(原因3)
通过find或者locate指令定位到链接文件,查看链接文件是否正确的指向了我们希望的lib,如果不是,用 ln -sf */libxxx.so.x */libxxx.so 指令修改它。
解决办法:(原因4)
如果是库文件路径引发的问题,可以到/etc/ld.so.conf.d目录下,修改其中任意一份conf文件,(可以自建conf,以方便识别)将lib所在目录写进去,然后在终端输入 ldconfig 更新缓存。
- /usr/bin/ld: cannot find -l* 错误的解决方法
- /usr/bin/ld: cannot find -l* 错误的解决方法
- /usr/bin/ld: cannot find -l* 错误的解决方法……
- 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 -lcrypto 错误的解决方法
- /usr/bin/ld: cannot find -l*
- usr/bin/ld: cannot find -l<nameOfTheLibrary>
- /usr/bin/ld: cannot find -l*
- /usr/bin/ld: cannot find -l**** 问题的解决办法
- /usr/bin/ld: cannot find -l**** 问题的解决办法
- /usr/bin/ld: cannot find -lX11解决方法
- /usr/bin/ld: cannot find -lmysqlclient 解决方法
- /usr/bin/ld: cannot find -lmysqlclient解决方法
- /usr/bin/ld:cannot find -lGL的解决方法
- Study Flex《强引用与弱引用》
- 浏览器对DIV+CSS兼容性问题大总结
- visual studio ankhSVN安装之后不显示subclipse
- 去掉快捷箭头脚本
- 14周:虚函数练习
- /usr/bin/ld: cannot find -l* 错误的解决方法
- Web开发者不容错过的20段CSS代码
- 使用git进行管理
- awk学习记录
- Oracle 几个简单的日期函数
- Android学习笔记-常用的一些源码,防止忘记了。。。
- Android 学习笔记 Service 启动
- cocos2dx返回Android游戏黑屏解决办法
- 详解STM32的PWM输出及频率和脉宽(占空比)的计算——寄存器配置六步曲!