LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-19-2004, 12:45 AM   #1
hatti_ajit
LQ Newbie
 
Registered: Nov 2003
Location: Pune India
Distribution: Redhat 8
Posts: 6

Rep: Reputation: 0
Install/ UnInstall GCC


Hello out there!

I am using Redhat 7.2, I have default gcc-2.96 version with it. For installation of QT3.2.2 I need gcc 3.2.
So, I need to know

1. Can I have 2 versions for gcc at a time ?
2. If not how can I uninstall any version of gcc ?
3. how to Install gcc form the .tar of it obtained form gcc.org in simple steps ?
(whats given there is too complicated)
here's little ask for help to you.

Ajit
 
Old 07-19-2004, 01:19 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
1. You should be able to. But there is no reason to, just upgrade the old version to a new version.

2. Assuming that you installed gcc as a rpm (The version that comes with redhat is installed by rpm), simply "rpm -e gcc" at the command line. I don't suggest that you remove gcc though, as other programs depend on it. Try this:

3. Find an rpm version of gcc. Install it using "rpm -uvh gcc-version.rpm" This will upgrade your current version of gcc to the new version that you have downloaded.
To answer your question:
Code:
tar -xzvf fileName.tar.gz
cd fileName
./configure && make && make install
as root should do the trick

I hope this helps
--Ian
 
Old 07-19-2004, 02:55 AM   #3
hatti_ajit
LQ Newbie
 
Registered: Nov 2003
Location: Pune India
Distribution: Redhat 8
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Iam,
As pre your suggestion I tried, but got following error.


[root@Ajits_Linux Personal]# rpm -i gcc-3.2-7.i386.rpm
error: failed dependencies:
cpp = 3.2-7 is needed by gcc-3.2-7
binutils >= 2.12.90.0.7-1 is needed by gcc-3.2-7
glibc-devel >= 2.2.90-12 is needed by gcc-3.2-7
libgcc >= 3.2-7 is needed by gcc-3.2-7
rpmlib(PartialHardlinkSets) <= 4.0.4-1 is needed by gcc-3.2-7
gdb < 5.1-2 conflicts with gcc-3.2-7

How to make way out of it now ?
 
Old 07-19-2004, 03:18 AM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Try downloading and installing apt4rpm. This is a port of Debian's apt-get for RPM based systems, and automatically resolves dependancies.
When you have downloaded and installed it, type "apt-get update" and then "apt-get install gcc"
This should install gcc, along with all the required dependancies.

--Ian
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i uninstall gcc-3.3-base biosedit Linux - Software 2 11-11-2005 01:57 AM
need to uninstall gcc 2.96 then install newer? ginda Linux - General 3 07-17-2005 03:16 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Must have gcc to install gcc? thafusion Linux - Software 4 05-28-2004 10:20 PM
RH 8.0 Install/Uninstall mawarsha Linux - Newbie 1 02-04-2003 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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