CentOS6.2 failed gcc compiler, kernel-headers error

With the cloud server ready to be transferred to Ali, with CentOS6.2 x64, version 6.3 virtual machine, reinstall the test several times no problem, the results on the cloud server started on the problem. . .

When yum install actually wrong, and rely on. . . Online google the next, also found that some students have such problems with the server cloud Ali, had a solution, by the way copy over the next order!

Do not know the original system is not Ali cloud server has a problem ah. .

wrong description:

Error: Package: glibc-headers-2.12-1.80.el6_3.4.x86_64 (updates)
Requires: kernel-headers >= 2.2.1
Error: Package: glibc-headers-2.12-1.80.el6_3.4.x86_64 (updates)
Requires: kernel-headers
You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
kernel-2.6.32-220.13.1.el6.x86_64 has missing requires of kernel-firmware >= ('0', '2.6.32', '220.13.1.el6')

step:

1. Check your own server kernel version number

rpm -q kernel

2. kernel-headers corresponding version Download

address:

http://rpm.pbone.net/index.php3/stat/4/idpl/18032865/dir/scientific_linux_6/com

wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/6.0/x86_64/updates/security/kernel-headers-2.6.32-220.13.1.el6.x86_64.rpm


3. Install the rpm package

rpm -Uvh kernel-headers-2.6.32-220.13.1.el6.x86_64.rpm

4. Complete! ! ! Yum you can continue to go on. . .





Reproduced in: https: //my.oschina.net/zhouz/blog/213192

Guess you like

Origin blog.csdn.net/weixin_33816300/article/details/91728382