LinuxQuestions.org
Review your favorite Linux distribution.
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 03-30-2009, 04:21 PM   #1
djpme
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Rep: Reputation: 0
Install GCC C Compiler without Yum


All of the online articles that give instructions for installing the GCC C compiler, suggests using the yum command, but don't you need to be registered with RHN to use yum? Does it cost to register? I have been navigating the redhatlinux website all day and cannot find a link for creating an account.

Any suggestions on how to install the GCC C compiler with the most standard settings? I'm only installing it because another program needs it.
 
Old 03-30-2009, 05:10 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
You can add the CentOS repo's to /etc/yum.repos.d/

Redhat CentOS 5 = Redhat EL 5
CentOS is the free version.

Go to post # 2 and 3 here
http://www.linuxquestions.org/questi...highlight=repo
.....
 
Old 03-31-2009, 11:41 AM   #3
djpme
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
You can add the CentOS repo's to /etc/yum.repos.d/

Redhat CentOS 5 = Redhat EL 5
CentOS is the free version.

Go to post # 2 and 3 here
http://www.linuxquestions.org/questi...highlight=repo
.....
Knudfl, I followed the directions but when I install I get this dependency error:
Code:
[root@gs500L-alfproto rpmfusion]# rpm -Uvh rpmfusion-free-release-5-0.1.noarch.rpm 
warning: rpmfusion-free-release-5-0.1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID e74f0522
error: Failed dependencies:
        epel-release >= 5 is needed by rpmfusion-free-release-5-0.1.noarch

Is there something I should do with the epel files attached in post 3? If so, what should I do? Thanks.
 
Old 03-31-2009, 01:03 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,990

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
djpme :
WHAT red hat are you running because that error massage says that you are NOT running rhel 5 , but something else .

also why did you download the .rpm file and install using the rpm command .
you can install it right from firefox 3 by clicking on the link -- this one
http://download1.rpmfusion.org/free/...0.1.noarch.rpm

-- or --
by typing this into the terminal ( well copy/paste )
Code:
  su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm'
or for some the -c option dose not work
Code:
 su -
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm
 rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm
 
Old 03-31-2009, 02:25 PM   #5
djpme
LQ Newbie
 
Registered: Feb 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
djpme :
WHAT red hat are you running because that error massage says that you are NOT running rhel 5 , but something else .
My version is "Red Hat Enterprise Linux Server release 5.2 (Tikanga)". I have about 10 days experience with Linux. Is that a bad or outdated version?

Quote:
Originally Posted by John VV View Post
also why did you download the .rpm file and install using the rpm command .
I'm a newbie...I didn't know I could do that.
 
Old 03-31-2009, 09:00 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,990

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
red hat el 5.2 is the current ( well 5.3 is ) but it is not old .

when running a rpm install using the rpm command dependencies are not taken care of
yum is the best .But for somethings like installing a repo then the last commands i posted will install it
this one
-- BUT RPMFusion is still in testing --
Code:
su -
 ( then type in your root password when asked )
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm
 rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm
RPMForge is the recomended - See the docs
you might want to read the CentOS 5.2 docs
http://wiki.centos.org/Documentation
-- about the repos
http://wiki.centos.org/AdditionalResources/Repositories
 
  


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
How to install gcc and g++ compiler... Carunkumar SUSE / openSUSE 3 01-03-2011 11:48 PM
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-23-2008 12:51 AM
how to install c compiler -gcc?? alifaziz Mandriva 3 08-22-2007 03:35 PM
Can't install GCC compiler!??!?! MickBurke Linux - Newbie 3 03-07-2005 03:53 PM
GCC Compiler Install Alpha-01 Linux - Newbie 6 10-03-2004 10:48 AM


All times are GMT -5. The time now is 01:34 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