解决找不到/usr/bin/ld: cannot find -lXX的问题

Ubuntu下遇到ld: cannot find -lXX之类的问题,提示找不到相关库文件

如果能上网,最不用废脑子的办法:

$ sudo apt-get install apt-file

$ apt-file update

$ apt-file search libXX.so

apt-file 将列出所有包含libXX.so文件的apt包,

选择相应的包用apt-get安装即可。通常请选择带dev的包安装,apt-get的用法请自查。

猜你喜欢

转载自www.cnblogs.com/laowangxieboke/p/12657546.html