Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .