红旗linux安装32bit依赖库
-
红旗linux安装32bit依赖库
-
红旗-7.3-lib-32.tar.gz 解压压缩包,根据如下进行操作
1.回退glibc
(1)查看当前glibc版本
[root@192 ~]# rpm -qa | grep glibc
glibc-common-2.17-157.axs7.1.x86_64
glibc-headers-2.17-260.axs7.5.x86_64
compat-glibc-2.12-4.axs7.x86_64
glibc-devel-2.17-157.axs7.1.x86_64
compat-glibc-headers-2.12-4.axs7.x86_64
glibc-2.17-260.axs7.5.x86_64
(2)安装对应低版本glibc(以实际环境为准)
[root@192 dibanben]# rpm -ivh glibc-2.17-157.axs7.1.x86_64.rpm glibc-headers-2.17-157.axs7.1.x86_64.rpm --force
警告:glibc-2.17-157.axs7.1.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID d92a0672: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:glibc-2.17-157.axs7.1 警告:/etc/nsswitch.conf 已建立为 /etc/nsswitch.conf.rpmnew
################################# [ 50%]
2:glibc-headers-2.17-157.axs7.1 ################################# [100%]
(3)卸载高版本glibc(以实际环境为准)
[root@192 ~]# rpm -qa | grep glibc
glibc-common-2.17-157.axs7.1.x86_64
glibc-2.17-157.axs7.1.x86_64
glibc-headers-2.17-260.axs7.5.x86_64
compat-glibc-2.12-4.axs7.x86_64
glibc-headers-2.17-157.axs7.1.x86_64
glibc-devel-2.17-157.axs7.1.x86_64
compat-glibc-headers-2.12-4.axs7.x86_64
glibc-2.17-260.axs7.5.x86_64
[root@192 ~]# rpm -e glibc-2.17-260.axs7.5.x86_64 glibc-headers-2.17-260.axs7.5.x86_64 --nodeps
[root@192 ~]# rpm -qa | grep glibc
glibc-common-2.17-157.axs7.1.x86_64
glibc-2.17-157.axs7.1.x86_64
compat-glibc-2.12-4.axs7.x86_64
glibc-headers-2.17-157.axs7.1.x86_64
glibc-devel-2.17-157.axs7.1.x86_64
compat-glibc-headers-2.12-4.axs7.x86_64
2.配置自定义yum源
(1)将glibc.tar.gz解压缩
(2)删除或移走自带的redflag.repo文件
(3)编写glibc.repo
[root@192 yum.repos.d]# vim /etc/yum.repos.d/glibc.repo
[glibc]
name=glibc
baseurl=file:///root/glibc
gpgcheck=0
enabled=1
(4)检查yum源
[root@192 ~]# yum repolist
3.安装glibc.i686包
[root@192 ~]# yum install glibc.i686
4.查看glibc.i686是否安装成功
[root@192 ~]# rpm -qa | grep glibc
glibc-common-2.17-157.axs7.1.x86_64
glibc-2.17-157.axs7.1.i686
glibc-2.17-157.axs7.1.x86_64
compat-glibc-2.12-4.axs7.x86_64
glibc-headers-2.17-157.axs7.1.x86_64
glibc-devel-2.17-157.axs7.1.x86_64
compat-glibc-headers-2.12-4.axs7.x86_64
- 红旗-7.6-lib-32.tar.gz 直接使用rpm进行安装
yum -y install glibc-2.17-260.axs7.i686.rpm nss-softokn-freebl-3.36.0-5.axs7.i686.rpm
评论区