侧边栏壁纸
博主头像
平凡的运维之路博主等级

行动起来,活在当下

  • 累计撰写 49 篇文章
  • 累计创建 25 个标签
  • 累计收到 3 条评论

目 录CONTENT

文章目录

红旗linux安装32bit依赖库

平凡的运维之路
2024-07-16 / 0 评论 / 0 点赞 / 16 阅读 / 3941 字

红旗linux安装32bit依赖库

  • 红旗linux安装32bit依赖库

    • lib下载

    • 红旗-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
0

评论区