【解决】/usr/bin/ld: cannot find -lc
2015-04-01 11:01
435 查看
现象:运行gcc静态编译程序时报错:
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [gcc_dry2] Error 1
(或者调用Makefile编译时报错)
原因:程序链接须要静态库,系统没有安装静态库导致报错
解决:安装静态库
#sudo yum install glibc-static
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [gcc_dry2] Error 1
(或者调用Makefile编译时报错)
原因:程序链接须要静态库,系统没有安装静态库导致报错
解决:安装静态库
#sudo yum install glibc-static
相关文章推荐
- 【解决】/usr/bin/ld: cannot find -lc
- chkrootkit 编译报错的解决/usr/bin/ld: cannot find -lc
- chkrootkit 编译报错的解决/usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc 的解决办法
- chkrootkit安装过程中出现/usr/bin/ld: cannot find -lc的解决方法
- 解决g++编译出现/usr/bin/ld: cannot find -lc
- 【解决】/usr/bin/ld: cannot find -lc
- 编译报错 /usr/bin/ld: cannot find -lc 解决
- /usr/bin/ld: cannot find -lc 解决
- /usr/bin/ld: cannot find -lc 解决
- linux 解决 Linux: /usr/bin/ld: cannot find -lc Error and Solution
- 解决/usr/bin/ld: cannot find -lxxx 问题
- fedora17安装Qt5.0.0遇到/usr/bin/ld: cannot find -lGL的解决方法
- /usr/bin/ld: cannot find -lmysqlclient 解决方法
- Linux系统中提示/usr/bin/ld: cannot find -lxxx错误的通用解决方法
- Linux系统中提示/usr/bin/ld: cannot find -lxxx错误的通用解决方法
- 解决/usr/bin/ld: cannot find -lxxx 问题合集
- Fedora 17安装Qt5.0.0遇到/usr/bin/ld: cannot find -lGL的解决方法
- 交叉编译时报错:/usr/bin/ld: cannot find -lc
- /usr/bin/ld: cannot find -lc