園豆兌換阿里雲代金券 體驗阿里雲雲服務器 http://home.cnblogs.com/activity/aliyun 活動,花1塊錢體驗了一下阿里雲,安裝了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*前加注釋即可解決,此參數的意思是排除安裝或更新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 即可生效
測試地址:http://42.121.4.181
51CTO最近舉辦 2012年度IT博客大賽, 期待博客園的同學們鼎力相助