阿里云云服务器更新GCC是提示错误解决方案

阿里云云服务器 ,安装了CentOS6.2后,在其上按照《32和64位的CentOS 6.0下 安装 Mono 2.10.8 和Jexus 5.0》,在执行yum 更新系统的时候就发生了如下错误:

--> Running transaction check
---> Package gc.x86_64 0:7.1-10.el6 will be installed   
---> Package glibc-headers.x86_64 0:2.12-1.80.el6_3.5 will be installed   
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.                                                                                                 12-1.80.el6_3.5.x86_64   
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.80.e                                                                                                 l6_3.5.x86_64   
--> Finished Dependency Resolution   
Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)   
           Requires: kernel-headers   
Error: Package: glibc-headers-2.12-1.80.el6_3.5.x86_64 (updates)   
           Requires: kernel-headers >= 2.2.1   
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')

解决方法:修改文件vi /etc/yum.conf 将exclude=kernel*前加注释即可解决:#exclude=kernel*,此参数的意思是排除安装或更新kernel开头的软件,而我们安装gcc需要依赖kernel相关的软件glibc-headers-2.12-1.80.el6_3.5.x86_64 。

在安装完毕后浏览中文网页或查看中文文档时总是宣誓乱码,因此需要安装中文语言包,如果不能 从安装盘进行安装,可以通过yum进行安装,安装办法为:

1
2
yum groupinstall <language>-support
eg:yum groupinstall chinese-support

在上面的命令中, 是下列之一: assamese, bengali, chinese, gujarati, hindi, japanese, kannada, korean, malayalam, marathi, oriya, punjabi, sinhala, tamil, thai, 或 telegu。

locale -a查看系统支持的语言

vi /etc/sysconfig/i18n

改成LANG=”zh_CN.UTF-8″

source /etc/sysconfig/i18n 即可生效

你可能感兴趣的:(阿里云云服务器更新GCC是提示错误解决方案)