usr/bin/ld: cannot find 错误解决方法

作者:佚名 上传时间:2019-05-28 版权申诉

参考:http://blog.siyebocai.cn/20100324_5p424qs7.html

通常在软件编译时出现的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 错误解决方法 ,如需转载请自行联系原博主。

免责申明:文章和图片全部来源于公开网络,如有侵权,请通知删除 server@dude6.com

用户评论
相关推荐
darknet usr bin ld cannot find lcuda
ubuntu18.04 , cuda10.0 编译darknet出现/usr/bin/ld: cannot find -lcuda cannot find -lcuda 意思是编译时未找到libcud
PDF
29KB
2021-01-15 15:38
usr/bin/ld: cannot find 错误解决方法
参考:http://blog.siyebocai.cn/20100324_5p424qs7.html 通常在软件编译时出现的usr/bin/ld: cannot find
usr/bin/ld: cannot find 错误解决方法
参考:http://blog.siyebocai.cn/20100324_5p424qs7.html 通常在软件编译时出现的usr/bin/ld: cannot find -lx
/usr/bin/ld: cannot find -lmysqlclien
环境 centos5.7 x86_64 系统上安装postfix ! 错误 "/usr/bin/ld: cannot find -lmysqlcli
Linux编译静态链接出现usr bin ld cannot find lc解决方式
Linux编译静态链接出现:/usr/bin/ld:cannotfind-lc.将libc.a拷贝到usr/lib/中,问题得以解决。
A
0B
2019-07-19 10:19
安装chkrootkit 报 /usr/bin/ld: cannot find -lc出错
1、环境:系统centos x64 6.6 2、软件:安装chkrootkit出错
LAMP编译:usr bin ld cannot find lltdl 错误的解决办法
文章来源:http://yangsiwei.com/usr-bin-ld-cannot-find-lltdl-%E9%94%99%E8%AF%AF%E7%9A%84%E8%A7%A3%E5%
Cannot find module xxx错误解决方法
错误信息 Cannot find module '@/views/login/index' Failed to resolve async component default vue-router.e
PDF
42KB
2021-01-16 08:08
usr bin ld找不到lcuda
1,这是一个压缩文件,解压后名称应为libcuda.so,是cuda库中的一个重要文件。2,这个文件用于不具备cuda显卡的电脑在ubuntu平台配置gpgpu-sim时,绕过因为找不到lcuda而无
7Z
0B
2019-09-07 02:49
编译PHP报错configure error Cannot find libmysqlclient under usr解决方法
今天在64位Red Hat Enterprise Linux AS release 4 .7上编译PHP5.2.6出错,mysql是使用的RPM方式安装的,PHP编译代码如下: ./configure
PDF
33KB
2020-12-22 11:12