Try this:
Install one gcc in /usr/bin
Install the other gcc miles away (/opt, /usr/local, it doesn't really matter).
the libs will go in the local trees - /usr/local/lib, /opt/lib, and version specific directories. Then change the path of the compiling usr
$ export PATH=/opt/bin:$PATH
You can check what libs they find with ldd. For a while I had gcc-2.95 and gcc-3.3.1 this way in /usr/bin & /usr/local
|