HOO八卦
妖魔鬼怪快离开

CentOS 6 更新glibc到2.15 各种虚拟化适用

拯救了openvz centos6低版本依赖。哈鱼 bbr qemu等等

背景

狗博主一直喜欢用CentOS 6(就像很多人不习惯其他操作平台一样),最近又剁了几个OVZ小鸡,想着给他装GOOGLE BBR的时候,却发现glibc还停留在2.13,这里我知道的有两种更新方式,推荐使用第一种,会比较快。

OpenVZ 更新glibc到2.15

方法一:rpm安装

先下载以下几个文件:

wget http://ftp.redsleeve.org/pub/steam/glibc-2.15-60.el6.x86_64.rpm 
http://ftp.redsleeve.org/pub/steam/glibc-common-2.15-60.el6.x86_64.rpm 
http://ftp.redsleeve.org/pub/steam/glibc-devel-2.15-60.el6.x86_64.rpm 
http://ftp.redsleeve.org/pub/steam/glibc-headers-2.15-60.el6.x86_64.rpm 
http://ftp.redsleeve.org/pub/steam/nscd-2.15-60.el6.x86_64.rpm

然后安装

rpm -Uvh glibc-2.15-60.el6.x86_64.rpm 
glibc-common-2.15-60.el6.x86_64.rpm 
glibc-devel-2.15-60.el6.x86_64.rpm 
glibc-headers-2.15-60.el6.x86_64.rpm 
nscd-2.15-60.el6.x86_64.rpm

方法二:编译安装(上面的方式行不通,再用编译的方式,编译的方式相对时长会久很多)

wget http://ftp.gnu.org/gnu/glibc/glibc-2.15.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz
tar -zxf glibc-2.15.tar.gz
tar -zxf glibc-ports-2.15.tar.gz
mv glibc-ports-2.15 glibc-2.15/ports
mkdir glibc-build-2.15
cd glibc-build-2.15
../glibc-2.15/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
make all && make install

检查是否成功安装

ldd --version

成功安装的输入如下

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.

成功安装完成后就可以愉快的安装bbr了,可以参考我这里的一键bbr脚本:
https://www.sabia.cc/bash-openvz-bbr-lkl-nanqinlang.html

赞(0)
未经允许不得转载:HOO八卦 » CentOS 6 更新glibc到2.15 各种虚拟化适用
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

Find More Interest

Contactsthrough