un this scrip as su to install gcc-4.7.1 in /share/apps/gcc in a Rocks Linux cluster # Note that the installation may take up to a few hours #! /bin/bash # source http://gcc.gnu.org/wiki/InstallingGCC #wget http://www2.fizik.usm.my/configrepo/howto/gcc/gcc.tar.bz2 mkdir /share mkdir /share/apps mkdir /share/apps/configrepo cd /share/apps wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/gcc/gcc.tar.bz2 tar jxf gcc.tar.bz2 mv gcc.tar.bz2 configrepo/ cd gcc-4.7.1 ./contrib/download_prerequisites cd .. mkdir objdir cd objdir ../configure --prefix=/share/apps/gcc make make install