LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 12-21-2013, 07:15 PM   #1
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 126

Rep: Reputation: 15
Not able to install gcc (Centos 5.10)


Hi.. i am using CentOS 5.10

i try to install the package gcc using yum using the following command:

#yum install gcc

And got the error:

Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-118 set to be updated
--> Processing Dependency: glibc = 2.5-118 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-118 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
--> Running transaction check
---> Package glibc-devel.x86_64 0:2.5-118 set to be updated
--> Processing Dependency: glibc = 2.5-118 for package: glibc-devel
---> Package glibc-headers.x86_64 0:2.5-118 set to be updated
--> Processing Dependency: glibc = 2.5-118 for package: glibc-headers
--> Finished Dependency Resolution
glibc-devel-2.5-118.x86_64 from centos has depsolving problems
--> Missing Dependency: glibc = 2.5-118 is needed by package glibc-devel-2.5-118.x86_64 (centos)
glibc-headers-2.5-118.x86_64 from centos has depsolving problems
--> Missing Dependency: glibc = 2.5-118 is needed by package glibc-headers-2.5-118.x86_64 (centos)
Error: Missing Dependency: glibc = 2.5-118 is needed by package glibc-devel-2.5-118.x86_64 (centos)
Error: Missing Dependency: glibc = 2.5-118 is needed by package glibc-headers-2.5-118.x86_64 (centos)

You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest



But when i tried to install glibc package -> yum install glibc, and i got the following errors:

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* rpmforge: mirror.oscc.org.my
Setting up Install Process
Package matching glibc-2.5-118.x86_64 already installed. Checking for update.
Package matching glibc-2.5-118.i686 already installed. Checking for update.
Nothing to do

In that error message, we can see that glibc-2.5-118x86_64 has already installed . And why did yum complains that
about "Missing Dependency: glibc = 2.5-118 is needed by package glibc-devel-2.5-118.x86_64 (centos)" (in the first error message above)
when i did the "yum install gcc".

Thanks in advance for any feedback that would help in resolving this.

Justin
 
Old 12-22-2013, 12:19 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,689

Rep: Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687Reputation: 1687
please read the centos wiki

and use the groupinstall

Code:
su -
yum groupinstall "Development Tools" "Development Libraries"
and double check the names from the output od
Code:
su -
yum grouplist

also you have " rpmforge" installed on CentOS 5 / RHEL 5
rpmforge is KNOWN !!!!!!!!!!
to have many ,many , many incompatible rpms that are incompatible with the redhat/cent base and update repos
and you do not have "yum-priorities " installed and configured
see:
http://wiki.centos.org/AdditionalResources/Repositories
and heed the warnings
the yum plugin
http://wiki.centos.org/PackageManagement/Yum/Priorities

this was "? mostly ?" fixed in CentOS 6



Also have you cleaned the database
Code:
su -
yum clean all
rpm --rebuilddb
yum update
 
Old 12-23-2013, 06:48 PM   #3
just.srad
Member
 
Registered: Apr 2008
Location: Singapore
Distribution: Slackware 14.0
Posts: 126

Original Poster
Rep: Reputation: 15
Thanks John.. That's really informative. Appreciate it! =)
 
  


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
yum install gcc in Centos chuikingman Linux - Server 7 01-02-2012 03:41 PM
gcc install question for CentOS 5.6 KingSalibah Linux - Newbie 9 11-21-2011 03:51 PM
How to install gcc when a current gcc is installed but not responding Nadishka Linux - Newbie 6 10-15-2009 03:33 PM
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-22-2008 11:51 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM


All times are GMT -5. The time now is 01:19 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration