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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lrtaylor@xxxxxxxxxx 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux