RE: Help required to upgrade gcc

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

 



Marek wrote:

> 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.

Rup.




[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