Hi
What are the standard practices with installing multiple versions of gcc on a system. I renamed this gcc to be gcc-4.1. However, it looks like it will still overwrite some files when I do 'make install'. Is this true?
As far as I know, "make install" does not overwrite any files if there is not a previous version at the default installation path or the directory specified by the prefix switch.
How do people put multiple version on the same machine?
In my case, I just use different installation path with the --prefixe switch, i.e. /home/username/gcc-4.1, /home/username/gcc-4.2 ...
Second, say I wanted to tar up a release of gcc that i've built for others to use. When the other user downloads and untars the file on there filesystem in an arbitrary point, I'm assumming it won't work because it's not in the --prefix=.. directory.
I think it should work because the library paths are relative to the gcc, g++ executable.
Is it possible to get around this? I would like a user to be able to
untar it anywhere, and
have it work just fine. If this is possible, please advise.
Probably for the different target builds like linux and win it will not work.. What I mean is if you have gcc compiled to be hosted in linux it will not work under win and vice versa. For more details you can refer to the configuration documentation of gcc - http://gcc.gnu.org/install/configure.html. Hope it was useful, Ferad Zyulkyarov