首页 > 系统相关 >linux 中如何升级glibc 版本

linux 中如何升级glibc 版本

时间:2022-09-30 16:12:12浏览次数:57  
标签:https gnu -- glibc usr 版本 linux 2.27

 

001、系统

[root@localhost home]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

 

002、查看当前glibc版本

[root@localhost home]# ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

 

003、从2.17升级到2.27版本

下载安装包, 下载地址:https://ftp.gnu.org/gnu/glibc/

wget https://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.bz2 --no-check-certificate
tar -xjvf glibc-2.27.tar.bz2
cd glibc-2.27/
mkdir build && cd build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make
make install

 

004、查看升级效果

strings /lib64/libc.so.6 | grep GLIBC

 

参考:https://zhuanlan.zhihu.com/p/559791450

 

标签:https,gnu,--,glibc,usr,版本,linux,2.27
From: https://www.cnblogs.com/liujiaxin2018/p/16745229.html

相关文章

  • centos7中升级make到最新版本
     001、系统[root@localhost~]#cat/etc/redhat-releaseCentOSLinuxrelease7.9.2009(Core) 002、当前make版本[root@localhost~]#make--versionGNUMa......
  • Linux /Centos 7 服务器定时将备份信息、日志发送到邮箱
    公司业务需要将数据库每日备份,然后在保存到本地硬盘,且未搭建文件服务器。于是换一种思路解决,利用Linux发送邮件并添加备份文件作为附件信息,发送到指定的邮箱,然后定时执行脚......
  • linux常用命令
    系统信息动态观察cpu、内存,进程情况:top格式:top[选项]选项:-dnumber:每隔多少秒更新一次,默认5-p:指定pid交互:P:按CPU使用率排序......
  • 解决问题Linux启动错误“ERROR: There's no '/dev' on rootfs.”不能mount sda2的根文
    在测试KR260的自己工程时,Linux启动报告错误“ERROR:There'sno'/dev'onrootfs.”。对应的工具时PetaLinux2022.1.根文件系统在/dev/sda2,Linux启动后再mount,能成功。......
  • Linux安全之SELinux理解
    ​​安全增强式Linux​​​,即​SELinux​(Security-EnhancedLinux)是一个 ​Linux​ 内核的安全模块,其提供了访问控制安全策略机制,包括了强制访问控制(MandatoryAccess......
  • Linux主机信息收集
    成殇Orz10x00Linux主机渗透MSF生成LUNIX平台可执行文件msfvenom-plinux/x86/meterpreter/reverse_tcplhost=192.168.31.246lport=8882-felf-olocalmsf8882.elf......
  • Windows上编译可运行在Linux上的go二进制文件
    Windows上编译可运行在Linux上的go二进制文件1、前言默认Windows上编译的go二进制为exe,只能运行在Windows上,而想要在Linux上运行,则需要到Linux的平台编译。有没有一种办......
  • 封装自用Linux命令
    [本文出自天外归云的博客园]1.创建脚本命令文件:vimy_cmd2.编写脚本内容并保存::wq3.转移脚本命令文件到命令工具目录下:mvmy_cmd/usr/local/bin4.修改脚......
  • 【Linux】Unable to fetch some archives, maybe run apt-get update or try with --f
    一、问题描述在aptinstall时候遇到E:Unabletofetchsomearchives,mayberunapt-getupdateortrywith--fix-missing?的error。Error报的信息显示是这个包向so......
  • Linux
    Linux用于学习记录S1概述1.1介绍是一套免费使用和自由传播的类Unix操作系统,有众多以其为内核的发行版,例如Ubuntu、CentOS等。1.2应用场景linux下开发项目......