Skip to content

Instantly share code, notes, and snippets.

@ba0f3
Created March 19, 2020 09:28
Show Gist options
  • Save ba0f3/1aa0a6269cac286ddfd871bef43c9817 to your computer and use it in GitHub Desktop.
Save ba0f3/1aa0a6269cac286ddfd871bef43c9817 to your computer and use it in GitHub Desktop.
Compile GlibC 2.14 on Centos 6, copied from https://unix.stackexchange.com/a/299665
#!/bin/bash
mkdir ~/glibc_install; cd ~/glibc_install
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make -j4
sudo make install
export LD_LIBRARY_PATH="/opt/glibc-2.14/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment