Sunday, April 1, 2007

Installing GCC for Linux (Fedora Core 6)

Introduction
Phew! Here are the steps for installing the GNU C Compiler (GCC) for Linux in Fedora Core 6 .

Steps

Download the following files :


  • libgomp-4.1.1-30.i386.rpm

  • glibc-headers-2.5-3.i386.rpm

  • glibc-devel-2.5-3.i386.rpm

  • gcc-4.1.1-30.i386.rpm


You can get the above files by searching for the above files on
http://rpmfind.net/linux/rpm2html/search.php
Install the rpm's , open the console :


[.....]# rpm -Uvh libgomp-4.1.1-30.i386.rpm
.
.
[.....]# rpm -Uvh glibc-headers-2.5-3.i386.rpm
.
.
[.....]# rpm -Uvh glibc-devel-2.5-3.i386.rpm
.
.
[.....]# rpm -Uvh gcc-4.1.1-30.i386.rpm



Finished Installation

Confirm your installation by doing a man gcc
It should be done ....

Be free...Linux.

5 comments:

Anirudh said...

heh heh...this is why I use Debian. In Debian to install gcc all you have to do is

#apt-get install gcc

:-)

Perhaps a better way to check for a program would be the which command. For eg.

$which gcc
output should be some valid path like /usr/bin/gcc
The which command is used to locate a command(refer man)

Abhay said...

If possible,add debian based tutorials too as debian based linux is getting more common than rpm...

Unknown said...

i know much powerful element in fedora core than another versions of linux,i think this is not a good judgement when we discuse about which version has less work than another, we have to focus on which has better performance.in spite of this i prefer Windos Xp.

Anonymous said...

Here is the easy way to add gcc for Fedora Core 6:

#yum install gcc

wow, even easier than Debian, less typing :-)

Anonymous said...

getting THIS error when I try to configure ImageMagick in Fedora Core 6


[root@ldc1227 ImageMagick-6.3.9]# ./configure
configuring ImageMagick 6.3.9
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... //bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

I already installed gcc & cc. When I run find -name gcc return nothing. What does it mean?