upgrade gcc on fedora core 4

JD jd1008 at gmail.com
Thu Sep 9 18:14:46 UTC 2010



On 09/09/2010 11:01 AM, Andrew Haley wrote:
> On 09/09/2010 02:38 PM, Rossella Noschese wrote:
>
>> I've a question. At work we have a fedore core 4 release on a 64-bit
>> machine. We need now to upgrade the compiler. We have GNU Fortran 95 (GCC
>> 4.0.0 20050519 (Red Hat 4.0.0-8)). We need at least gcc version 4.1.2
>> 20071124 (Red Hat 4.1.2-42). I'm not a great shell user, so can you help me?
> You'll just have to build gcc from source.  While this isn't
> terribly hard to do, you are going to have to find a great shell
> user, and someone who understand make/autoconf/etc.
>
> Andrew.
If the new gcc source rpm is available, all the user has to do is:

sudo yum-builddep gcc-xx.yy.xx.src.rpm

THIS WILL INSTALL ANY NEEDED DEPENDENCIES THAT GCC NEEDS .
This has the great possibility that many existing packages that would
need to be updated will have such a far reaching dependency chain,
that it would break the current installation.

Assuming all went well, and no conflicts arose,

rpm -ivh gcc-xx.yy.xx.src.rpm

cd ..... SPECS

rpmbuild -v -bb gcc.spec

QED  :)


More information about the users mailing list