" ?">

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

一、问题背景

编译安装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

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


Linker Error "cannot find -l"

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

你可能感兴趣的:(【compile】How to solve the error "/usr/bin/ld: cannot find -l" ?)