centosに最新のglibcをインストール
centosのglibcの古代バージョン:
7年前の、古いですね.
まずgcc 8,g++8,cmake 3,ninjaをインストールし、このブログを参照してください:CentOS/Debian/Ubuntuで最新版GCC 8をコンパイルインストールし、cmake 3とninjaでgnu makeとGNU「binutils」(as and ld)を更新し、このブログを参照してください:CentOS/Debian/Ubuntuで最新版gnu makeとGNU「binutils」(as and ld)をコンパイルインストールします.
ダウンロード、コンパイル、インストール:
注意:glibcを手動で更新することはお勧めしません.安全ではありません.
optディレクトリにインストールされるのは、他の古いプログラムが古いglibcを必要とする可能性があるからです.使用方法:
参考:upgrade-How to update glibc to 2.14 in CentOS 6.5-Unix&Linux Stack Exchange
更新しないとエラーが発生します.
ここではas GNU ld makeという4つのツールが古すぎるので、更新が必要だと言いました.このブログを参照:最新版gnu makeとGNU「binutils」(as and ld)をCentOS/Debian/Ubuntuでコンパイルインストール
root@:~/clickhouse/ClickHouse/build# 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.
7年前の、古いですね.
まずgcc 8,g++8,cmake 3,ninjaをインストールし、このブログを参照してください:CentOS/Debian/Ubuntuで最新版GCC 8をコンパイルインストールし、cmake 3とninjaでgnu makeとGNU「binutils」(as and ld)を更新し、このブログを参照してください:CentOS/Debian/Ubuntuで最新版gnu makeとGNU「binutils」(as and ld)をコンパイルインストールします.
ダウンロード、コンパイル、インストール:
wget https://ftp.gnu.org/gnu/libc/glibc-2.29.tar.gz
tar -xvzf glibc-2.29.tar.gz
mkdir glibc-build
cd glibc-build
../glibc-2.29/configure --prefix=/opt/glibc-2.29
make -j4
make install
注意:glibcを手動で更新することはお勧めしません.安全ではありません.
optディレクトリにインストールされるのは、他の古いプログラムが古いglibcを必要とする可能性があるからです.使用方法:
export LD_LIBRARY_PATH="/opt/glibc-2.29/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
ldd --version
参考:upgrade-How to update glibc to 2.14 in CentOS 6.5-Unix&Linux Stack Exchange
更新しないとエラーが発生します.
configure: error:
*** These critical programs are missing or too old: as GNU ld make
*** Check the INSTALL file for required versions.
ここではas GNU ld makeという4つのツールが古すぎるので、更新が必要だと言いました.このブログを参照:最新版gnu makeとGNU「binutils」(as and ld)をCentOS/Debian/Ubuntuでコンパイルインストール