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: Syed Ahsan Ali Bokhari <ahsan dot pmd at gmail dot com>
- To: Ãngel GonzÃlez <keisial at gmail dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 5 Aug 2014 21:54:11 +0500
- 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>
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.?
On Tue, Aug 5, 2014 at 2:32 PM, Ãngel GonzÃlez <keisial@gmail.com> wrote:
> On 05/08/14 10:37, Jonathan Wakely wrote:
>>
>> On 5 August 2014 04:45, Syed Ahsan Ali Bokhari wrote:
>>>
>>> My RHEL6.1 has pre installed gcc (GCC) 4.4.5 20110214 (Red Hat
>>> 4.4.5-6). I want to update it to latest version. I don't have red hat
>>> subscription and therefore I'll have to install from source. How can I
>>> uninstall this version
>>
>> "yum erase gcc" but I would advise against doing that.
>>
>>> and install a more recent version of GCC.
>>
>> It's a bad idea to replace the system compiler, just install a newer
>> version in a different path.
>
> Specially if you attempt to remove it before having the new one ready,
> as you won't be able to install from source (thus compilÂng) the new version
> without a working compiler.
>
--
Syed Ahsan Ali Bokhari
Electronic Engineer
Research & Development Division
Pakistan Meteorological Department H-8/2, Islamabad.
Phone # off +92519250361
Cell # +923155145014
Fax # +92519250368
www.pmd.gov.pk