内容目录
需求产生
系统原来的信息
[root@S47 ~]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE
[root@S47 ~]# uname -a
Linux S47 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
需要升级GLIBC2.14的原因是因为
[root@S47 ~]# ldd /usr/local/lib/librecast.so
ldd: warning: you do not have execution permission for `/usr/local/lib/librecast.so'
/usr/local/lib/librecast.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/lib/librecast.so)
linux-vdso.so.1 => (0x00007ffd1bff9000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fd9226a2000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd92241e000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fd922208000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd921e74000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd922be3000)
下载
网上搜索了下到处找2.14的rpm包 ,编译怕老系统过不了..
都要积分都要钱 好不容易找到了 国内还下不动,到国外vps下载了再二次下载下来
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-common-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-devel-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-headers-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-static-2.14.1-6.x86_64.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/15/x86_64/glibc-utils-2.14.1-6.x86_64.rpm
自己下载后压缩了一下包,网盘分享给大家
https://wwqm.lanzouj.com/izTbu1b9kqzi
https://pan.xunlei.com/s/VNgIelHz3RcD8QB6Ze4BYcyNA1?pwd=ciyv#
2023.11.7发现https://ftp.gnu.org/gnu/glibc/ 这里有全版本的 根据自己需求下载安装
安装
安装命令
unzip unzip GLIBC-2.14.1-6.X86_64.zip
chmod 777 *
rpm -Uvh glibc-2.14.1-6.x86_64.rpm --nodeps
rpm -Uvh glibc-common-2.14.1-6.x86_64.rpm --nodeps
rpm -Uvh glibc-devel-2.14.1-6.x86_64.rpm --nodeps
rpm -Uvh glibc-headers-2.14.1-6.x86_64.rpm
rpm -Uvh glibc-static-2.14.1-6.x86_64.rpm
rpm -Uvh glibc-utils-2.14.1-6.x86_64.rpm --nodeps
操作示例带返回内容
[root@S47 ~]# mkdir 2.14
[root@S47 ~]# cd 2.14/
[root@S47 2.14]# ll
total 16860
-rw-r--r-- 1 root root 17263757 Oct 27 00:49 GLIBC-2.14.1-6.X86_64.zip
[root@S47 2.14]# unzip GLIBC-2.14.1-6.X86_64.zip
Archive: GLIBC-2.14.1-6.X86_64.zip
inflating: glibc-2.14.1-6.x86_64.rpm
inflating: glibc-common-2.14.1-6.x86_64.rpm
inflating: glibc-devel-2.14.1-6.x86_64.rpm
inflating: glibc-headers-2.14.1-6.x86_64.rpm
inflating: glibc-static-2.14.1-6.x86_64.rpm
inflating: glibc-utils-2.14.1-6.x86_64.rpm
[root@S47 2.14]# ls
glibc-2.14.1-6.x86_64.rpm GLIBC-2.14.1-6.X86_64.zip glibc-common-2.14.1-6.x86_64.rpm glibc-devel-2.14.1-6.x86_64.rpm glibc-headers-2.14.1-6.x86_64.rpm glibc-static-2.14.1-6.x86_64.rpm glibc-utils-2.14.1-6.x86_64.rpm
[root@S47 2.14]# chmod 777 *
[root@S47 2.14]# ll
total 34468
-rwxrwxrwx 1 root root 3504537 Oct 9 16:19 glibc-2.14.1-6.x86_64.rpm
-rwxrwxrwx 1 root root 17263757 Oct 27 00:49 GLIBC-2.14.1-6.X86_64.zip
-rwxrwxrwx 1 root root 11380113 Oct 9 16:19 glibc-common-2.14.1-6.x86_64.rpm
-rwxrwxrwx 1 root root 1000813 Oct 9 16:19 glibc-devel-2.14.1-6.x86_64.rpm
-rwxrwxrwx 1 root root 612685 Oct 9 16:19 glibc-headers-2.14.1-6.x86_64.rpm
-rwxrwxrwx 1 root root 1341813 Oct 9 16:33 glibc-static-2.14.1-6.x86_64.rpm
-rwxrwxrwx 1 root root 176137 Oct 9 16:33 glibc-utils-2.14.1-6.x86_64.rpm
[root@S47 2.14]# rpm -Uvh glibc-2.14.1-6.x86_64.rpm --nodeps
warning: glibc-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc ########################################### [100%]
[root@S47 2.14]# rpm -Uvh glibc-common-2.14.1-6.x86_64.rpm --nodeps
warning: glibc-common-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc-common ########################################### [100%]
[root@S47 2.14]# rpm -Uvh glibc-devel-2.14.1-6.x86_64.rpm --nodeps
warning: glibc-devel-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc-devel ########################################### [100%]
[root@S47 2.14]# rpm -Uvh glibc-headers-2.14.1-6.x86_64.rpm
warning: glibc-headers-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc-headers ########################################### [100%]
[root@S47 2.14]# rpm -Uvh glibc-static-2.14.1-6.x86_64.rpm
warning: glibc-static-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc-static ########################################### [100%]
[root@S47 2.14]# rpm -Uvh glibc-utils-2.14.1-6.x86_64.rpm --nodeps
warning: glibc-utils-2.14.1-6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
1:glibc-utils ########################################### [100%]
[root@S47 ~]# strings /lib64/libc.so.6 | grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_PRIVATE
[root@S47 30207]# ldd /usr/local/lib/librecast.so
ldd: warning: you do not have execution permission for `/usr/local/lib/librecast.so'
linux-vdso.so.1 => (0x00007ffd481ca000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f9f56f8f000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9f56d0b000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f9f56af5000)
libc.so.6 => /lib64/libc.so.6 (0x00007f9f5675b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9f574c4000)
/lib64/libc.so.6: version `GLIBC_2.14′ not found (required by的报错没有了
附录
GLIBC2.15压缩包 给需要安这个版本的同学 流程一样,安装的rpm文件名改一下就行
https://wwqm.lanzouj.com/inSkX1b9mjjc 密码:7uf8
https://pan.xunlei.com/s/VNgIhSBgpyWz9mHrg018qHT0A1?pwd=dm4r#
1 comment on centos6安装升级glibc-2.14.1-6.x86_64