giggzounet
2010-Sep-01 15:35 UTC
[CentOS] centos 5.5 oscar: gcc41, gcc44 and gfortran41, gfortran44
Hi, I'm totally new with centos...we have a cluster in our labo with centos oscar. The gcc which was provided with the release is gcc41 and gfortran41. There are packages for gcc44 and gfortran44. I have installed them. But the gcc is not a link to gcc41 or gcc44. it is just an executable. idem for gfortran. So which is the good way on centOS to choose the gcc44 and gfortran44 per default. Thx a lot! Best regards, Guillaume
Matthew Miller
2010-Sep-01 15:47 UTC
[CentOS] centos 5.5 oscar: gcc41, gcc44 and gfortran41, gfortran44
On Wed, Sep 01, 2010 at 05:35:23PM +0200, giggzounet wrote:> I'm totally new with centos...we have a cluster in our labo with centos > oscar. The gcc which was provided with the release is gcc41 and > gfortran41. There are packages for gcc44 and gfortran44. I have > installed them. > But the gcc is not a link to gcc41 or gcc44. it is just an executable. > idem for gfortran. So which is the good way on centOS to choose the > gcc44 and gfortran44 per default.The easiest way in most cases is put 'export CC=gcc44' in your bash profile. -- Matthew Miller mattdm at mattdm.org <http://mattdm.org/>
John Doe
2010-Sep-01 15:55 UTC
[CentOS] centos 5.5 oscar: gcc41, gcc44 and gfortran41, gfortran44
From: giggzounet <giggzounet at gmail.com>> I'm totally new with centos...we have a cluster in our labo with centos > oscar. The gcc which was provided with the release is gcc41 and > gfortran41. There are packages for gcc44 and gfortran44. I have > installed them. > But the gcc is not a link to gcc41 or gcc44. it is just an executable. > idem for gfortran. So which is the good way on centOS to choose the > gcc44 and gfortran44 per default.Are you sure you did not update the packages instead of install...? To list the packages files : rpm -ql PACKAGENAME And check what is where... JD
Marcelo M. Garcia
2010-Sep-01 16:06 UTC
[CentOS] centos 5.5 oscar: gcc41, gcc44 and gfortran41, gfortran44
giggzounet wrote:> Hi, > > I'm totally new with centos...we have a cluster in our labo with centos > oscar. > But the gcc is not a link to gcc41 or gcc44. it is just an executable. > idem for gfortran. So which is the good way on centOS to choose the > gcc44 and gfortran44 per default. >Hi I not sure if I understood the problem, but if your are using OSCAR, and if I remember right, you can install as many compiler as you want, but you select using the utility "module", like "module load gcc41" or "module load gcc44". Of course, you have to configure the environment. Then you put the right module in your configuration file: bashrc or bash_profile. Hope this helps Marcelo
Maybe Matching Threads
- make fails with no rule to make target `VR.ts'
- No graphics capability on fresh install of R2.11.0 on FreeBSD 8.0
- Package Matrix does not compile in R-devel_2009-01-10
- [CentOS 5.5] Program/method to test integrity of the system/packages
- [LLVMdev] Compiling llvm and Clang on Linux