天天看點

CentOS 6 glibc更新到2.15                                      CentOS 6 glibc更新到2.15CentOS 6 glibc更新到2.17及安裝ntfs-3g

                                      CentOS 6 glibc更新到2.15

2017-04-11 0條評論 1,357次閱讀 1人點贊

CentOS6.X預設的glibc版本最高為2.12,但實際應用中,許多項目所依賴的包往往需要更高版本的glibc庫支援。

方法一

适用于CentOS 6 x64:

準備工作

1、更新系統

yum update -y

1 yum update - y

2、安裝kernel-headers

yum install kernel-headers -y

1 yum install kernel - headers - y

3、安裝gcc

yum -y install gcc gcc-c++

1 yum - y install gcc gcc - c ++

4、更新glibc list

yum update glibc

yum list glibc

1 2 yum update glibc yum list glibc

更新glibc 版本,把下面的代碼複制到linux中運作

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-utils-2.15-60.el6.x86_64.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-headers-2.15-60.el6.x86_64.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-static-2.15-60.el6.x86_64.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-common-2.15-60.el6.x86_64.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-2.15-60.el6.x86_64.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-2.15-60.el6.i686.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-devel-2.15-60.el6.x86_64.rpm

wget -c ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/nscd-2.15-60.el6.x86_64.rpm

sudo rpm -e --nodeps --justdb glibc-2.*.i686 --allmatches

rpm -Uvh *-2.15-60.el6.x86_64.rpm

rpm -Uvh glibc-2.15-60.el6.i686.rpm

ldconfig

1 2 3 4 5 6 7 8 9 10 11 12 wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-utils-2.15-60.el6.x86_64.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-headers-2.15-60.el6.x86_64.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-static-2.15-60.el6.x86_64.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-common-2.15-60.el6.x86_64.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-2.15-60.el6.x86_64.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-2.15-60.el6.i686.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/glibc-devel-2.15-60.el6.x86_64.rpm wget - c ftp : //ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fu/fuduntu-el/el6/current/UNSTABLE/RPMS/nscd-2.15-60.el6.x86_64.rpm sudo rpm - e -- nodeps -- justdb glibc - 2. * . i686 -- allmatches rpm - Uvh * - 2.15 - 60.el6.x86_64.rpm rpm - Uvh glibc - 2.15 - 60.el6.i686.rpm ldconfig

首先是一些關鍵包,nscd可以不要,但為了防止個别使用了nscd的,是以順便更新了。

這個時候,便已将glibc更新到2.15版本。

64位下,經常同時安裝了x86_64和i686版本的glibc,更新需要先解除安裝i686版本,然後執行更新,再重新安裝i686版本(部分程式在編譯需要32位的庫)。

檢視系統glibc版本可使用如下指令:

ls -l /lib64/libc.so.6

1 ls - l / lib64 / libc .so . 6

詳細glibc支援可以用以下指令檢視:

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

1 strings / lib64 / libc .so . 6 | grep GLIBC_
CentOS 6 glibc更新到2.15                                      CentOS 6 glibc更新到2.15CentOS 6 glibc更新到2.17及安裝ntfs-3g

方法二

準備工作如方法一,不再重複。

mkdir glibc

cd glibc

wget -c http://ftp.redsleeve.org/pub/steam/glibc-2.15-60.el6.x86_64.rpm

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

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

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

wget -c http://ftp.redsleeve.org/pub/steam/nscd-2.15-60.el6.x86_64.rpm

1 2 3 4 5 6 7 mkdir glibc cd glibc wget - c http : / / ftp .redsleeve .org / pub / steam / glibc - 2.15 - 60.el6.x86_64.rpm wget - c http : / / ftp .redsleeve .org / pub / steam / glibc - common - 2.15 - 60.el6.x86_64.rpm wget - c http : / / ftp .redsleeve .org / pub / steam / glibc - devel - 2.15 - 60.el6.x86_64.rpm wget - c http : / / ftp .redsleeve .org / pub / steam / glibc - headers - 2.15 - 60.el6.x86_64.rpm wget - c http : / / ftp .redsleeve .org / pub / steam / nscd - 2.15 - 60.el6.x86_64.rpm

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

1 2 3 4 5 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
CentOS 6 glibc更新到2.15                                      CentOS 6 glibc更新到2.15CentOS 6 glibc更新到2.17及安裝ntfs-3g

轉https://www.234du.com/post-1022.html

CentOS 6 glibc更新到2.17及安裝ntfs-3g

wget https:

//ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz

下載下傳完成後

?

1 2 3 4 5 6 7

tar –zxvf glibc-

2.17

.tar.gz

cd glibc-

2.17

mkdir build

cd build

../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

make –j4

make install

通過yum安裝nfts-3g即可達到目的

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-repo    //下載下傳yum倉庫檔案
yum update;yum install ntfs3g  //yum安裝 解決依賴性問題
           

繼續閱讀