Help required to upgrade gcc
Thu Apr 3 11:16:00 GMT 2008
> 3. ./configure
> 4. make
> 5. make install
This will have built a new version of GCC and installed it in /usr/local/bin. You can use the new version if you add that directory to your path. You may also need to ensure /usr/local/lib is in your LD_LIBRARY_PATH. Note that the GCC install instructions recommend building GCC outside the source directory, i.e. you shouldn't be using "./configure" in step 3 - see http://gcc.gnu.org/install/configure.html
To overwrite your existing GCC system you need to use "--prefix=/usr" on the compile line or similar. Probably the best thing to do would be to look at the entire configure line from your currently installed GCC (use "gcc -v") and copy / paste that. However are you sure you want to do that? If you have existing C++ libraries built with the old compiler, for example, these will very likely be incompatible with the new C++ compiler. It may be easier to leave the new version of GCC in /usr/local and run it from there, or start again with a fresh Linux install if you do really want to update your system compiler.
More information about the Gcc-help