tar -zxf gcc-9.3.0.tar.gz
cd gcc-9.3.0.tar.gz
./contrib/download_prerequisites
mkdir build
cd build
../configure --prefix=/usr/local/gcc-9.3.0 --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install
cd
vi .gcc9
gcc=/usr/local/gcc-9.3.0/bin
SHORT_PATH=`echo $PATH | sed -e 's/\/usr\/local\/gcc-[0-9]\.[0-9]\.[0-9]\/bin\://'`
export PATH=$gcc:$SHORT_PATH
echo
gcc --version | grep GCC | sed -e 's/^/Now, your gcc version is: /'
tar -zxf gcc-8.4.0.tar.gz
cd gcc-8.4.0.tar.gz
./contrib/download_prerequisites
mkdir build
cd build
../configure --prefix=/usr/local/gcc-8.4.0 --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install
cd
vi .gcc8
gcc=/usr/local/gcc-8.4.0/bin
SHORT_PATH=`echo $PATH | sed -e 's/\/usr\/local\/gcc-[0-9]\.[0-9]\.[0-9]\/bin\://'`
export PATH=$gcc:$SHORT_PATH
echo
gcc --version | grep GCC | sed -e 's/^/Now, your gcc version is: /'
tar -zxf gcc-7.5.0.tar.gz
cd gcc-7.5.0.tar.gz
./contrib/download_prerequisites
mkdir build
cd build
../configure --prefix=/usr/local/gcc-7.5.0 --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install
cd
vi .gcc7
gcc=/usr/local/gcc-7.5.0/bin
SHORT_PATH=`echo $PATH | sed -e 's/\/usr\/local\/gcc-[0-9]\.[0-9]\.[0-9]\/bin\://'`
export PATH=$gcc:$SHORT_PATH
echo
gcc --version | grep GCC | sed -e 's/^/Now, your gcc version is: /'
tar -zxf gcc-6.5.0.tar.gz
cd gcc-6.5.0.tar.gz
./contrib/download_prerequisites
mkdir build
cd build
../configure --prefix=/usr/local/gcc-6.5.0 --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install
cd
vi .gcc6
gcc=/usr/local/gcc-6.5.0/bin
SHORT_PATH=`echo $PATH | sed -e 's/\/usr\/local\/gcc-[0-9]\.[0-9]\.[0-9]\/bin\://'`
export PATH=$gcc:$SHORT_PATH
echo
gcc --version | grep GCC | sed -e 's/^/Now, your gcc version is: /'
tar -zxf gcc-5.5.0.tar.gz
cd gcc-5.5.0.tar.gz
./contrib/download_prerequisites
mkdir build
cd build
../configure --prefix=/usr/local/gcc-5.5.0 --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install
cd
vi .gcc6
gcc=/usr/local/gcc-5.5.0/bin
SHORT_PATH=`echo $PATH | sed -e 's/\/usr\/local\/gcc-[0-9]\.[0-9]\.[0-9]\/bin\://'`
export PATH=$gcc:$SHORT_PATH
echo
gcc --version | grep GCC | sed -e 's/^/Now, your gcc version is: /'