2012年(101)
分类: LINUX
2012-06-12 22:19:22
1.下载最新的rpm包.
[root@bjhealth1 ~]# ls -l glibc-*.rpm
-rw-r--r-- 1 root root 5000134 Dec 16 10:14 glibc-2.9-3.i386.rpm
-rw-r--r-- 1 root root 22729239 Dec 16 10:28 glibc-common-2.9-3.i386.rpm
-rw-r--r-- 1 root root 2229407 Dec 16 10:35 glibc-devel-2.9-3.i386.rpm
-rw-r--r-- 1 root root 630422 Dec 16 10:33 glibc-headers-2.9-3.i386.rpm
2.使用rpm -Uvh安装,注意,以上四个文件都必须存在一个目录中,且版本号一致.
[root@bjhealth1 ~]# rpm -Uvh glibc*.rpm
warning: glibc-2.9-3.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing... ########################################### [100%]
1:glibc-headers ########################################### [ 25%]
2:glibc ########################################### [ 50%]
3:glibc-common ########################################### [ 75%]
4:glibc-devel ########################################### [100%]
3.不能使用上述命令一个一个安装,这样会出现以下错误.
[root@bjhealth1 ~]# rpm -Uvh glibc-headers-2.9-3.i386.rpm
warning: glibc-headers-2.9-3.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
glibc = 2.9-3 is needed by glibc-headers-2.9-3.i386
[root@bjhealth1 ~]# rpm -Uvh glibc-devel-2.9-3.i386.rpm
warning: glibc-devel-2.9-3.i386.rpm: V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
glibc = 2.9-3 is needed by glibc-devel-2.9-3.i386
glibc-headers = 2.9-3 is needed by glibc-devel-2.9-3.i386
4.必须使用命令rpm -Uvh glibc*.rpm