# Run this scrip as su to install gcc-4.8.4 in pre-defined directory. By default it is installed in /share/apps # Note that the installation may take up to a few hours #! /bin/bash # source http://gcc.gnu.org/wiki/InstallingGCC #! /bin/bash # #dir=$(echo $HOME) dir='/share/apps' yum -y install glibc-devel.i686 ### cd /tmp wget http://www2.fizik.usm.my/configrepo/howto/gcc/gcc-4.8.4.tar.gz tar -zxvf gcc-4.8.4.tar.gz cd gcc-4.8.4 ./contrib/download_prerequisites mkdir objdir cd objdir ../configure --prefix=$dir/gcc-4.8.4 make make install