阿里云云服务器更新GCC是提示错误解决方案
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
阿里云云服務(wù)器 ,安裝了CentOS6.2后,在其上按照《32和64位的CentOS 6.0下 安裝 Mono 2.10.8 和Jexus 5.0》,在執(zhí)行yum 更新系統(tǒng)的時(shí)候就發(fā)生了如下錯(cuò)誤:
--> 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*,此參數(shù)的意思是排除安裝或更新kernel開頭的軟件,而我們安裝gcc需要依賴kernel相關(guān)的軟件glibc-headers-2.12-1.80.el6_3.5.x86_64 。
在安裝完畢后瀏覽中文網(wǎng)頁或查看中文文檔時(shí)總是宣誓亂碼,因此需要安裝中文語言包,如果不能 從安裝盤進(jìn)行安裝,可以通過yum進(jìn)行安裝,安裝辦法為:
| 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查看系統(tǒng)支持的語言
vi /etc/sysconfig/i18n
改成LANG=”zh_CN.UTF-8″
source /etc/sysconfig/i18n 即可生效
轉(zhuǎn)載于:https://my.oschina.net/u/273709/blog/88572
總結(jié)
以上是生活随笔為你收集整理的阿里云云服务器更新GCC是提示错误解决方案的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Bitmap 索引 vs. B-tree
- 下一篇: C#中 .resx文件