This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to uninstall pre-installed previous version and install new
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Syed Ahsan Ali Bokhari <ahsan dot pmd at gmail dot com>
- Cc: Ãngel GonzÃlez <keisial at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 5 Aug 2014 18:10:04 +0100
- Subject: Re: How to uninstall pre-installed previous version and install new
- Authentication-results: sourceware.org; auth=none
- References: <CAOjP03VxDgEAwMGHZoTbGiKbZgE+eNAsOz7rGt9jbFKS=36_og at mail dot gmail dot com> <CAH6eHdQdE=VNB0G1u_bFkC6_8cE34=idAB3jegSVZ4+7EamaaQ at mail dot gmail dot com> <53E0A4B6 dot 1090007 at gmail dot com> <CAOjP03X4u8Q8eDzarSXL6ebxR3ZxZJ2B3aS2vFenomQ1Ddop-g at mail dot gmail dot com>
On 5 August 2014 17:54, Syed Ahsan Ali Bokhari wrote:
> Yes I did that before, I removed the gcc and when I tried to build a
> new gcc from source it crashed complaining that no C compiler is
> present. Isn't it weird that installation of C compiler needs C
> compiler as a pre-requisite.?
You don't need a compiler to install a C compiler, you need a compiler
to *compile* a C compiler, just like you need a compiler to compile
any program.
If you just want to install gcc you use 'yum' or 'rpm' to do that,
instead of compiling it yourself.
If you want to compile gcc, obviously you need a compiler of some kind.
It might seem weird but it's not, it's quite normal.
http://en.wikipedia.org/wiki/Bootstrapping_%28compilers%29