在rhel 7.3中安装oracle 11g时发现未安装后者需要要的glibc-devel(32位),但已安装了64位的,rhel 7.3的光盘映像文件中取得
glibc-devel-2.17-157.el7.i686.rpm文件进行安装,由于没有经验,走了一些弯路,但也学到了一些知识。
(一)安装,失败,如下:
[root@localhost Desktop]# rpm -ivh glibc-devel-2.17-157.el7.i686.rpm
warning: glibc-devel-2.17-157.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libBrokenLocale.so.1 is needed by glibc-devel-2.17-157.el7.i686
libanl.so.1 is needed by glibc-devel-2.17-157.el7.i686
libcidn.so.1 is needed by glibc-devel-2.17-157.el7.i686
libcrypt.so.1 is needed by glibc-devel-2.17-157.el7.i686
libdl.so.2 is needed by glibc-devel-2.17-157.el7.i686
libm.so.6 is needed by glibc-devel-2.17-157.el7.i686
libnsl.so.1 is needed by glibc-devel-2.17-157.el7.i686
libnss_compat.so.2 is needed by glibc-devel-2.17-157.el7.i686
libnss_db.so.2 is needed by glibc-devel-2.17-157.el7.i686
libnss_dns.so.2 is needed by glibc-devel-2.17-157.el7.i686
libnss_files.so.2 is needed by glibc-devel-2.17-157.el7.i686
libnss_hesiod.so.2 is needed by glibc-devel-2.17-157.el7.i686
libnss_nis.so.2 is needed by glibc-devel-2.17-157.el7.i686
libnss_nisplus.so.2 is needed by glibc-devel-2.17-157.el7.i686
libresolv.so.2 is needed by glibc-devel-2.17-157.el7.i686
librt.so.1 is needed by glibc-devel-2.17-157.el7.i686
libthread_db.so.1 is needed by glibc-devel-2.17-157.el7.i686
libutil.so.1 is needed by glibc-devel-2.17-157.el7.i686
(二)32位glibc-devel应基于32位glibc,应该先安装32位glibc,但安装失败,如下:
[root@localhost Desktop]# rpm -ivh glibc-2.17-157.el7.i686.rpm
warning: glibc-2.17-157.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libfreebl3.so is needed by glibc-2.17-157.el7.i686
libfreebl3.so(NSSRAWHASH_3.12.3) is needed by glibc-2.17-157.el7.i686
(三)上网查,得知,应与 nss-softokn-freebl一起安装,经查,本机已装64位的,未装32位,从映像文件中取得 nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm文件,安装,失败。
[root@localhost Desktop]# rpm -ivh nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm
warning: nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
error: Failed dependencies:
libc.so.6 is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libc.so.6(GLIBC_2.0) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libc.so.6(GLIBC_2.1) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libc.so.6(GLIBC_2.1.3) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libc.so.6(GLIBC_2.3) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libc.so.6(GLIBC_2.3.4) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libc.so.6(GLIBC_2.4) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libdl.so.2 is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libdl.so.2(GLIBC_2.0) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
libdl.so.2(GLIBC_2.1) is needed by nss-softokn-freebl-3.16.2.3-14.4.el7.i686
(四) glibc和nss-softokn-freebl一起安装,成功。
rpm -ivh glibc-2.17-157.el7.i686.rpm nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm
warning: glibc-2.17-157.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:nss-softokn-freebl-3.16.2.3-14.4.################################# [ 50%]
2:glibc-2.17-157.el7 ################################# [100%]
注:同时安装时两个包的顺序随意。
注:同样,安装后如需卸载也必须一起卸载,单独卸载则不能成功,命令如下。
# rpm -e glibc-2.17-157.el7.i686 nss-softokn-freebl-3.16.2.3-14.4.el7.i686
(五)最后安装glibc-devel,成功。
[root@localhost Desktop]# rpm -ivh glibc-devel-2.17-157.el7.i686.rpm
warning: glibc-devel-2.17-157.el7.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:glibc-devel-2.17-157.el7 ################################# [100%]