Compile and install GLIBC 2.18 in CentOS 7

Posted by Carles Loriente on December 28, 2019 · 1 min read

Download and compile GLIBC 2.18 in CentOS executing the following script.


# Check gist comments to verify system PATH and or adapt it.
wget https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
tar zxvf glibc-2.18.tar.gz
cd glibc-2.18
mkdir build
cd build
../configure --prefix=/opt/glibc-2.18
make -j4
sudo make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib

Download the GitHub Gist compile-and-install-glibc_2.18-centos-7.sh

Found a snippet that saved your day? Consider dropping a tip!