# 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