Can't install gcc 3.2 alongside gcc 2.96 on Red Hat 7.3

Jonathan Watt jonathan.watt@strath.ac.uk
Thu Feb 19 15:25:00 GMT 2004


lrtaylor@micron.com wrote:

> If you install it now, it won't overwrite anything that your old
> compiler uses, but it will install the binaries using the same name,
> meaning that you would need to adjust your path so that the compiler you
> want to use comes first.  You can give an option to configure that
> specifies a command suffix to use (such as 3 - giving gcc3).
> Reconfigure GCC using your preferred suffix and rebuild it.  Then you
> should be OK.  To use it, people could then just use gcc3, etc.
> 
> Cheers,
> Lyle
> 

So the only way to make the old gcc the default is to change everyone's 
PATH so that /usr/bin comes before /usr/local/bin? I guess on a lot of 
systems this could cause major problems by causing old versions of other 
programs to suddenly become the default. However, since /usr/local/bin 
is currently empty, and it is highly unlikely anyone else will be 
installing into it, it should be safe for this change to be made.

Thanks for that.

Jonathan



More information about the Gcc-help mailing list