LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2007, 10:51 PM   #1
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73
Blog Entries: 3

Rep: Reputation: 15
how to reinstall


Hi,

I want to reinstall gcc.
Can any one guide me?
 
Old 03-05-2007, 11:00 PM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
sure. What distro are you using?
 
Old 03-05-2007, 11:06 PM   #3
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73

Original Poster
Blog Entries: 3

Rep: Reputation: 15
am having Red Hat Enterprise edition-4.0
 
Old 03-05-2007, 11:11 PM   #4
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
rpm -ivhf gcc-same.version.rpm
 
Old 03-05-2007, 11:17 PM   #5
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Allright, google tells me that RHEL4 uses the up2date package manager, so the command would be something like this

Code:
up2date -fu gcc
the last part that said "gcc", might instead be "gcc-4.1" or whatever version you're after
 
Old 03-05-2007, 11:20 PM   #6
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73

Original Poster
Blog Entries: 3

Rep: Reputation: 15
I tried with rpm -ivhf gcc-4.1.2.i386.src.rpm
but I am not able to download!!!!!!!!!!
 
Old 03-05-2007, 11:30 PM   #7
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Quote:
Originally Posted by hegdeshashi
I tried with rpm -ivhf gcc-4.1.2.i386.src.rpm
note the .src.rpm. Did you mean to grab the source rpm, not the precompiled? You can't download any rpm's? Hmm, well, do you still have the last one laying about? Then you could use

Code:
rpm -ivf <absolute location of the rpm>
 
Old 03-05-2007, 11:54 PM   #8
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73

Original Poster
Blog Entries: 3

Rep: Reputation: 15
I am not able to find the rpm location for gcc-4.1.2 or gcc-3.4.3

Can any one plz......
 
Old 03-05-2007, 11:57 PM   #9
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
if it's on you're computer, you can find it with

Code:
locate gcc-4.1*
and/or

Code:
locate gcc-3.4*
 
Old 03-06-2007, 12:10 AM   #10
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73

Original Poster
Blog Entries: 3

Rep: Reputation: 15
I think gcc-3.4* or gcc-4* is not there in my system.
But If I give gcc -v
it will give me the version gcc 3.4.3 20041412 ( Red Hat 3.4.3-9.EL4)

what is the solution?
 
Old 03-06-2007, 12:26 AM   #11
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
download from http://rpm.pbone.net
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't reinstall XP Dasc General 4 11-01-2005 12:22 PM
To reinstall or not to reinstall...that's the question.. minike Slackware 3 09-17-2005 06:24 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
reinstall benoit Linux - Newbie 3 02-25-2003 03:12 PM
reinstall from cd arktype Linux - Software 4 08-24-2002 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:37 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
Open Source Consulting | Domain Registration