LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  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
eth1
Member
 
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,

Quote:
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
kirukan
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

Quote:
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
http://www.linuxquestions.org/questi...-clean-284353/
 
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
gcc-lib
gcc-lib/i386-redhat-linux
gcc-lib/i386-redhat-linux/2.96
gcc-lib/i386-redhat-linux/2.96/crtend.o
gcc-lib/i386-redhat-linux/2.96/libgcc_eh.a
gcc-lib/i386-redhat-linux/2.96/crtbegin.o
gcc-lib/i386-redhat-linux/2.96/crtbeginS.o
gcc-lib/i386-redhat-linux/2.96/libgcc.a
gcc-lib/i386-redhat-linux/2.96/crtendS.o


[root@localhost ~]# cd /usr/libexec/
[root@localhost libexec]# find gcc
gcc
gcc/i386-redhat-linux
gcc/i386-redhat-linux/3.4.3
gcc/i386-redhat-linux/3.4.3/cc1
gcc/i386-redhat-linux/3.4.5

[root@localhost ~]# rpm -qa | grep gcc
libgcc-3.4.5-2
compat-libgcc-296-2.96-132.7.2




[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?
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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