• 阿里云安装Mono 发生错误解决方法


    园豆兑换阿里云代金券 体验阿里云云服务器 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博客大赛, 期待博客园的同学们鼎力相助

    欢迎大家扫描下面二维码成为我的客户,为你服务和上云

  • 相关阅读:
    Java基础转换流InputStreamReader/OutputStreamWriter
    Java基础网络编程ServerClient通信(3)
    Java基础IO读取properties配置文件
    Java基础修改Properties配置文件
    Java基础网络编程ServerClient通信(1)
    Java基础BufferedInputStream和BufferedOutputStream拷贝文件
    Java基础BufferedWriter
    Java基础ObjectOutputStream和ObjectInputStream细节
    Java基础ObjectOutputStream、ObjectInputStream
    Java基础网络编程ServerClient通信(2)
  • 原文地址:https://www.cnblogs.com/shanyou/p/2750269.html
Copyright © 2020-2023  润新知