-
-
Save thiagogenez/f95b4a59ef80f3c40fc49f03f25adb8d to your computer and use it in GitHub Desktop.
The script will install GCC 5.5.0 on your CentOS 7 system, make sure you have root right. See https://jdhao.github.io/2017/09/04/install-gcc-newer-version-on-centos/ for more details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Downloading gcc source files..." | |
curl https://ftp.gnu.org/gnu/gcc/gcc-5.5.0/gcc-5.5.0.tar.gz -O | |
echo "extracting files..." | |
tar zxvf gcc-5.5.0.tar.gz | |
echo "Installing dependencies..." | |
yum -y install gmp-devel mpfr-devel libmpc-devel | |
echo "Configure and install..." | |
mkdir gcc-5.4.0-build | |
cd gcc-5.4.0-build | |
../gcc-5.4.0/configure --enable-languages=c,c++ --disable-multilib | |
make -j$(nproc) && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment