Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Hi is there an appropriate guide or tip or tricks to install gcc on a linux system such as red hat without using the package manager , from source , and with out having it mess everything else up? So that you can still use the previous compiler and switch back and forth easily?

share|improve this question
    
For which Linux distribution or package manager? –  fideli Apr 15 '12 at 5:29
    
updated the question a bit for you @fideli –  pyCthon Apr 15 '12 at 5:50

1 Answer 1

up vote 1 down vote accepted

If you don't change any settings, it should be fine. It will install to /usr/local, which will keep it separate from that platform's default gcc installation.

You may want to give the configuration tool a "program suffix" option to give it a name based on the version.

I would start by doing a gcc -v to see what options your platform's default GCC build uses, and consider each of those options to see if you want to include them. Do not change any of the default directories as your platform default did though. You want it to go into /usr/local.

share|improve this answer
    
so i change ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info to --prefix=usr/local ? –  pyCthon Apr 15 '12 at 16:18
    
You don't need to, /usr/local is the default. –  David Schwartz Apr 15 '12 at 20:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.