LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2010, 07:07 AM   #1
noony123
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
Installing gcc in RHEL5


Hi all.

I currently dont have the cd/dvd of RHEL 5. But i need to install gcc. I have been searching all day but wasnt able to find any rpm that is related to RHEL5. I download the following file

gcc-3.0.4.tar.gz

and extracted it, Then i run the following command

[root@WAN-Admin gcc-3.0.4]# ./configure
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /root/new/gcc-3.0.4 using "mt-frag"
/tmp/cNf11430/cNf11430.pos: line 7: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Now i am really hanged as what to do now. I added rpmfusion as my yum repo, i searched rpmpbone.net for gcc file for RHEL5 but it seems its not there for this version.

Can someone pls help me install it ?

Following few results may me useful to help me

[root@WAN-Admin gcc-3.0.4]# rpm -q cpp
cpp-4.1.1-52.el5

[root@WAN-Admin gcc-3.0.4]# gcc
bash: gcc: command not found
[root@WAN-Admin gcc-3.0.4]# rpm -q gcc
package gcc is not installed
[root@WAN-Admin gcc-3.0.4]#

Pls help me out
 
Old 12-05-2010, 07:41 AM   #2
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
wrong wrong wrong...

USE YUM (console), or software manager (gui) for that.
(search for gcc in there, and install it: it will download the rpm's for you, incl. dependencies.)

YUM is the build in package manager under RedHat Enterpise series.

sidenote:
If you would have read the supplied/online manual, you would have known this
(unless you use an illegal copy where you cannot use RHEL repositories.)

Last edited by teebones; 12-05-2010 at 07:46 AM.
 
Old 12-05-2010, 09:00 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,072

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
step #1
-- Pay for a red hat license
step #2
-- see #1
#3
run
Code:
yum groupinstall "Development Tools" "Development Librarys"
that will get you everything you need
also READ the man pages
Code:
yum --help
-- and --
man yum
 
Old 12-05-2010, 11:16 AM   #4
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
I DID IT !!!!!

i was able to install GCC. Actually i wanted to install rdesktop from source, for this i needed gcc. I am glad i was able to do it though i didnt had any subscribtion.

Actually i am new to linux, i didnt know Redhat El-5 was propreitry. I was under the impression that linux is free :-(

But you know what, its feels so good now. I was able to do something that, when i searched over the internet seemed impossible :-)

Thanks alot anyway
 
Old 12-05-2010, 11:28 AM   #5
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
Gnu/Linux is free, however some distributions bundle it with a support contract (like Redhat does).
You pay for the support only.
RHEL is such a bundled distribution.
A free alternative is CentOS, which is the same as RHEL but without the support part from RedHat.
(the software is the same though)
 
Old 12-05-2010, 12:36 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,072

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
and in cent you do not have to pay for access to the MAIN software repo
 
Old 12-05-2010, 12:39 PM   #7
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
indeed, that what i ment with : "(the software is the same though)" hehe
 
Old 12-05-2010, 12:41 PM   #8
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Hi guys, quik question, I am not that familiar with RHEL, however, I know that it is the commercial version of their distro's, but is it not possible to make use of Fedora repo's seeing it is from the same company?
 
Old 12-05-2010, 12:45 PM   #9
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
tricky some might some might not.. very dependent on the package itself, since the RHEL codebase is not on the same progression as Fedora is.
I mean, RHEL is based on an older version of Fedora, and not the current few releases.
Secondly, it's BASED, meaning it's not a direct repackage of Fedora (whatever version they based it on), it's has many parts of fedora, but some parts are changed, and some parts are added (e.g. redhat specific tools, you don't find in Fedora).. also some patches are inplace, which are not found in Fedora. Fedora changes every 6 months, while RHEL changes every 2 to 4 years.
RHEL is far more stable and tested, compared to Fedora.

I would advice you NOT to use Fedora RPM's. if you want something that isn't inside the main repo, compile it yourself from source, and either make a rpm out of it, for later reuse.
that way you won't polute the base, with experimental stuff, thus breaking the stability.

Last edited by teebones; 12-05-2010 at 12:50 PM.
 
Old 12-05-2010, 12:56 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,072

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
on my cent 5.5 install there are a few fedora 9 and 11 rpm's
BUT they have been FULLY TESTED , and not system files. A few games and a few fonts and one icon set
i like the fedora "echo" ( take that back i used the echo-icon-theme-0.3.3.tar.bz2)

but you can NOT use fedora rpms for gcc, autotools, gtk, qt , none for Gnome or KDE
they are not compatible
 
Old 12-05-2010, 12:57 PM   #11
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
So inotherwords it would be similar to saying RHEL is similar to Debian lenny and then fedora would be more like debian testing / experimental that after extensive testing merge with the stable branch. Sorry for hogging the thread, congrats on getting your compiler up and running.
 
Old 12-05-2010, 01:05 PM   #12
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
your could somewhat compare it as such. (although they not actually merge one on one as described above)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] installing java in rhel5 arun8900 Programming 6 08-31-2010 08:53 AM
gcc 3.3.3 on RHEL5 ? richards3974 Red Hat 11 04-08-2010 12:25 PM
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 02:52 PM
[SOLVED] building with make/gcc/cc over SSH via Putty onto RHEL5 gives not quotes IanVaughan Linux - General 2 07-28-2009 03:28 AM
installing GEForce8400GS on RHEL5 manianbala29 Linux - Desktop 3 12-12-2008 12:42 PM


All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration