Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-18-2009, 11:43 PM   #1
Isuru Divarathne
LQ Newbie
Registered: Oct 2009
Posts: 9

Rep: Reputation: 0
Angry problems installing gcc

Can anybody please tell me what are the steps to follow when there's an existing gcc version which does not respond to gcc -v and we need to install a newer gcc rpm version

since I've tried installing so many gcc rpm versions how am i going to remove them or will that not going to be an issue

i also want to know how "make distclean" command works and what it does
because I've set so many environmental variable in /etc/profile
for gcc

when I'm installing gcc rpm should i also set environmental variables if so where should i set them in .profile or /etc/profile
Old 10-19-2009, 01:31 AM   #2
Registered: May 2008
Posts: 97

Rep: Reputation: 20
If you want to keep the existing version of gcc and install a new version then you need to use the following,

rpm -ivh gcc-version.rpm
where gcc-version.rpm is the filename of the rpm.

This will keep the existing gcc RPM intact and install gcc-version.rpm separately. For your make distclean question, you can check the following article,
Old 10-19-2009, 01:39 AM   #3
Senior Member
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Just check the gcc rpm which are existing on the current system
rpm -qa | grep gcc
if you wish to upgrade current version, download the all gcc dependent rpm's and upgrade your existing gcc
rpm -Uvh

when I'm installing gcc rpm should i also set environmental variables if so where should i set them in .profile or /etc/profile
No need

check this link for different's of clean and distclean
Old 10-21-2009, 02:12 AM   #4
Isuru Divarathne
LQ Newbie
Registered: Oct 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thanx for all your support but question still exists..
i got results for following commands
and I'm confused this Red hat Version does have gcc installed or not

[root@localhost lib]# find /us[root@localhost ~]# cd /usr/lib
[root@localhost lib]# find gcc-lib

[root@localhost ~]# cd /usr/libexec/
[root@localhost libexec]# find gcc

[root@localhost ~]# rpm -qa | grep gcc

[root@localhost ~]# rpm -ivh gcc-version.rpm
error: open of gcc-version.rpm failed: No such file or directory

what should i do? i have also downloaded gcc-4.4.1-20.fc12.i686.rpm will installing this without removing existing gcc work?


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
problems installing gcc joa_ds Linux - Newbie 12 03-20-2009 01:08 PM
Problems installing GCC AcidSnake Linux - Software 14 09-07-2006 09:05 AM
Problems installing gcc HCLogo Mandriva 6 04-24-2004 03:48 PM
Problems with installing GCC TransAmJugo Linux - Software 2 08-04-2003 11:34 PM
Problems with installing GCC TransAmJugo Linux - Newbie 2 07-31-2003 02:37 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

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