Is it possible to install g ++ on CentOS without root?

I have an i7 core with CentOS 5.8 that I use SSH to use simulations. Unfortunately, it only has gcc version 4.1.2. This seems to produce significantly slower programs than what I get when compiling with optimizations on my slower laptop with Microsoft Visual Express C ++ 2010. I tried various g ++ optimization flags, but they don't help much, so I think what i need to update gcc.

I do not have a root on the machine, so it seems to me that I should install it in my home directory. Is this possible, and if so, are there any specific instructions necessary for this?

thanks

+7
source share
3 answers

You can use EasyBuild, which allows you to very easily install a specific version of GCC without requiring root, see http://hpcugent.github.com/easybuild .

Disclaimer: I am an EasyBuild developer.

+8
source

If you are building the original tarball, I believe you should go with ./configure --prefix=~/path/to/build/into , and then make and make install .

0
source

You can also use GNU SRC ..

After configuration, go to the gsrc directory and specify the following commands:

 make -C gnu/gcc make -C gnu/gcc install 
0
source

All Articles