安装C静态库

来源:互联网 发布:刘润5分钟商学院 知乎 编辑:程序博客网 时间:2024/06/05 19:43

# make

 /usr/bin/ld: cannot find -lc collect2: ld returned 1 exit


缺少C静态库,联网用yum装一个

# yum install glibc-static


Dependencies Resolved


====================================================================================
 Package               Arch         Version                   Repository       Size
====================================================================================
Installing:
 glibc-static          i686         2.12-1.80.el6_3.6         updates         1.1 M
Updating for dependencies:
 glibc                 i686         2.12-1.80.el6_3.6         updates         4.3 M
 glibc-common          i686         2.12-1.80.el6_3.6         updates          14 M
 glibc-devel           i686         2.12-1.80.el6_3.6         updates         971 k
 glibc-headers         i686         2.12-1.80.el6_3.6         updates         609 k


Transaction Summary
====================================================================================
Install       1 Package(s)
Upgrade       4 Package(s)


Total download size: 21 M

Is this ok [y/N]: y


原创粉丝点击