【compile】How to solve the error "/usr/bin/ld: cannot find -l<nameOfTheLibrary>" ?

一、问题背景

编译安装ntp时间,make报错


# ldconfig --help




二、问题拓展

在Linux环境编译应用程序或lib的source code时常常会出现如下的错误信息:

/usr/bin/ld: cannot find -lxxx



三、解决办法


#  yum  -y install  libcap-devel

# rpm  -ql  libcap-devel




四、参考


/usr/bin/ld: can not find -l<nameOfTheLibrary>

https://stackoverflow.com/questions/16710047/usr-bin-ld-cannot-find-lnameofthelibrary


Linker Error "cannot find -l<lib_name>"

https://community.nxp.com/thread/389071


/usr/bin/ld: cannot find -lOpenCL

https://askubuntu.com/questions/1007591/usr-bin-ld-cannot-find-lopencl


/usr/bin/ld: cannot find

https://stackoverflow.com/questions/5329638/usr-bin-ld-cannot-find/5329671

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容