3 yum install m17n-db-chinese
Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。使用命令 cd /etc/yum.repos.d/ 进入yum的配置目录。
2
在终端中输入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下载CentOS- Base.repo文件。
[root@localhost yum.repos.d]# wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
--22:01:18-- http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
Resolving docs.linuxtone.org... 203.74.150.88
Connecting to docs.linuxtone.org|203.74.150.88|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1426 (1.4K) [application/octet-stream]
Saving to: `CentOS-Base.repo'
100%[=======================================>] 1,426 --.-K/s in 0s
22:01:18 (80.4 MB/s) - `CentOS-Base.repo' saved [1426/1426]
然后将原有的rhel-debuginfo.repo备份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,将CentOS- Base.repo重命名成rhel-debuginfo.repo。
[root@localhost yum.repos.d]# mv CentOS-Base.repo rhel-debuginfo.repo
mv: overwrite `rhel-debuginfo.repo'? y
[root@localhost yum.repos.d]# ls
rhel-debuginfo.repo
成功以后,使用yum install build-essential安装成功。
[root@localhost yum.repos.d]# yum install build-essential
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
update 100% |=========================| 1.9 kB 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 1.9 kB 00:00
extras 100% |=========================| 2.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: build-essential
Nothing to do
5 安装语言包
[root@localhost yum.repos.d]# yum groupinstall "Chinese Support"
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Setting up repositories
Setting up repositories
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for scim-chinese-standard to pack into transaction set.
scim-chinese-standard-0.0 100% |=========================| 4.2 kB 00:00
以上方法 均存在 失败的可能!