# 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

本文详细介绍了遇到C静态库缺失错误时,如何通过使用yum命令安装glibc-static包来解决问题的过程。文章包括了依赖解析、安装过程、下载大小以及最终确认操作的完整步骤。
1015

被折叠的 条评论
为什么被折叠?



