GNU Compiler Collection update problem
Hi Everyone,
first off, apologies if this has already been covered; I have searched this forum (and the centos wiki and the gcc wiki) and have not been able to find any relevant information. For starters, I am running CentOS_5.6 (x86_64) and I am hoping to install some software for bioinformatics analysis (I am a graduate student in the basic biological sciences). This particular piece of software is called the Sequence Assembly Manager or SAM (if you are interested). The bit that has got me completely befuddled is that, in order to install Arachne (a dependency of SAM), I need an updated GCC/C++ compiler - at least version 4.3.3 and my version is 4.1.2. And I CANNOT seem to upgrade this software. I have tried using yum in the command line to do it - it seems to think that v-4.1.2 is the most current version. I have also tried the Add/Remove Software GUI that is packaged with the OS (which, I suspect, but couldn't say for sure is powered by yum) and it gives me the same problem - no more current versions of GCC available. However, if I navigate over to the GCC website, I can find more current versions of GCC and I have downloaded and unpacked the .tar.gz and .rpm files for v-4.6.2 however I cannot get them to build - I assume I am configuring GCC wrong with the .tar.gz version and there are dependencies for the .rpm that do not resolve themselves: Quote:
So, my question is: is there ANY way to upgrade GCC from CentOS 5.6 or do I have to upgrade my OS to one that has an upgraded GCC packaged with it? Because I have a TON of other software that needs to be installed for SAM and, of course, most of it is already installed (and it was quite unpleasant to make it all work properly) I look forward to hearing from you, Cheers, -chad |
A package as central as gcc would require a fair bit of effort to install from scratch, because there are many dependencies. Effectively you would have to compile up all of these other packages, and hope that they all work on this older version of CentOS without modification or incompatibility. You might put in a lot of effort and still get stuck.
If at all possible, your best bet is to upgrade to CentOS 6. If this is going to affect too many other programs, another option would be to run CentOS 6 or similar in a virtual machine to be used purely for SAM (assuming you have enough memory). A less desirable fallback would be to run an older version of SAM. Some distros are more amenable to mixing package versions than others. From the CentOS FAQ Quote:
|
Welcome to LQ.
First : You can have as many compiler versions as you want, installed at the same time. CentOS 5.x has three : 1) 4.1.2, 2) 4.4.4, 3) 3.4.6 . Installing 4.4.4 : # yum install gcc44-c++ 3.4.6 : # yum install compat-gcc-34-c++ Using 4.4.4 : export CC=gcc44 CXX=g++44 && <other-command> . |
Thanks for the info, knudfl. I actually wound up updating the OS to 6.2 and that has solved my problems.
|
All times are GMT -5. The time now is 11:47 AM. |