I am working on an HPC cluster that has the CentOS installed. My project requires the installation of the g++ >= 4.8.1 on the server. However, the gcc (g++) installed on the cluster is 4.4. And whats more problematic is that I am not allowed root access, so I cant use the sudo command on the cluster to install the gcc.
So, I decided to install the gcc version locally. For this, I followed these instructions. In the instructions, I simply replaced gcc 4.5 with gcc 5.1 and the word "user" with my username on the command line with the versions of gmp, mpc, and mpfr remaining the same. But however, the installation failed when I ran the command "make install" for the gcc with the following error:
/home/<username>/build/gcc-5.1.0/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory"
Is there some other way of installing the latest gcc version on the HPC cluster locally?