Not sure which version of GNU/Linux you are using, but you can try finding a binary package in the official repository (you will need the root account of the server, not sure if you have it). If there is no official binary package, you can download the source code of GCC at
http://ftp.gnu.org/pub/gcc and compile it.