Operating System - Linux
1753797 Members
7600 Online
108799 Solutions
New Discussion юеВ

Re: yum install gcc issue

 
SOLVED
Go to solution
MikeL_4
Super Advisor

yum install gcc issue

I am trying to install gcc for an Oracle requirement and the yum install is failing with following:

[root@odccdds01 ~]# /usr/bin/yum install gcc
Loaded plugins: rhnplugin, security
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-42.el5 set to be updated
--> Processing Dependency: libgomp = 4.1.2-42.el5 for package: gcc
--> Processing Dependency: cpp = 4.1.2-42.el5 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-24.el5_2.2 set to be updated
--> Processing Dependency: glibc-headers = 2.5-24.el5_2.2 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-24.el5_2.2 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package gcc.i386 0:4.1.2-42.el5 set to be updated
--> Processing Dependency: libgomp = 4.1.2-42.el5 for package: gcc
--> Processing Dependency: cpp = 4.1.2-42.el5 for package: gcc
--> Running transaction check
---> Package glibc.i386 0:2.5-24.el5_2.2 set to be updated
--> Processing Dependency: glibc-common = 2.5-24.el5_2.2 for package: glibc
---> Package glibc-headers.i386 0:2.5-24.el5_2.2 set to be updated
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
--> Processing Dependency: kernel-headers for package: glibc-headers
---> Package gcc.i386 0:4.1.2-42.el5 set to be updated
--> Processing Dependency: libgomp = 4.1.2-42.el5 for package: gcc
--> Processing Dependency: cpp = 4.1.2-42.el5 for package: gcc
--> Running transaction check
---> Package glibc.i386 0:2.5-24.el5_2.2 set to be updated
--> Processing Dependency: glibc-common = 2.5-24.el5_2.2 for package: glibc
---> Package kernel-headers.i386 0:2.6.18-92.1.22.el5 set to be updated
---> Package gcc.i386 0:4.1.2-42.el5 set to be updated
--> Processing Dependency: libgomp = 4.1.2-42.el5 for package: gcc
--> Processing Dependency: cpp = 4.1.2-42.el5 for package: gcc
--> Finished Dependency Resolution
glibc-2.5-24.el5_2.2.i386 from rhel-i386-server-5 has depsolving problems
--> Missing Dependency: glibc-common = 2.5-24.el5_2.2 is needed by package glibc-2.5-24.el5_2.2.i386 (rhel-i386-server-5)
gcc-4.1.2-42.el5.i386 from rhel-i386-server-5 has depsolving problems
--> Missing Dependency: libgomp = 4.1.2-42.el5 is needed by package gcc-4.1.2-42.el5.i386 (rhel-i386-server-5)
gcc-4.1.2-42.el5.i386 from rhel-i386-server-5 has depsolving problems
--> Missing Dependency: cpp = 4.1.2-42.el5 is needed by package gcc-4.1.2-42.el5.i386 (rhel-i386-server-5)
Error: Missing Dependency: glibc-common = 2.5-24.el5_2.2 is needed by package glibc-2.5-24.el5_2.2.i386 (rhel-i386-server-5)
Error: Missing Dependency: cpp = 4.1.2-42.el5 is needed by package gcc-4.1.2-42.el5.i386 (rhel-i386-server-5)
Error: Missing Dependency: libgomp = 4.1.2-42.el5 is needed by package gcc-4.1.2-42.el5.i386 (rhel-i386-server-5)
[root@odccdds01 ~]#

If I try to install what dependencies it says it's missing, it tells me they are already installed....

Not sure where to go from here to get gcc installed, any assistance would be appreciated....
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: yum install gcc issue

Shalom,

There is a problem with the dependency database that yum is using.

I've seen this happen from a number of causes.

Normally its comes from a third party product installed that is complicating dependency calculations.

It is not likely a problem with gcc itself.

Best way around this is to uninstall some of these dependencies its confused about or go carefully through the output and remove the third party rpm triggering the problem.

After uninstall, re-install will be handled by yum.

yum clean all

Sometimes helps.

yum is supposed to solve these problems but every once in a while gets a bit confused.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Cowan
Honored Contributor

Re: yum install gcc issue

Mike,

Yum can get confused about versions and dependencies because packages can be installed from several repositories, and this can in turn cause depency failures.

First try running a "yum -y update" to ensure you have all the latest packages installed. Next install "yumex" the graphical version of Yum (yum -y yumex) and try searching for the missing depencies by name. If none of this helps visit sites such as "http://rpmfind.net/" and try searching for these specific packages and see if you can individually install these prereqs. If you manage this then try to re-install gcc.

Another slightly more risky approach is to see if you already have newer/different versions of the prereqs installed is to use the "rpm -Uvh --nodeps" or "--force" to install gcc. WARNING THIS IS RISKY AND CAN BRAKE YOUR SYSTEM.

Finally download all the packages individually and experiment with manually installing packages using "rpm -Uvh" e.g.

rpm -Uvh ./x ./y ./z

as this can sometimes satisfy the prereqs.

Good luck,
Andrew
MikeL_4
Super Advisor

Re: yum install gcc issue

Thanks for your help, was able to trace down what was actually failing and needed and resolved issue...

Thanks
Peter Beck
New Member

Re: yum install gcc issue

Hi Mike,

I seem to have the same problem.

Could you please let me know what you worked out was the root of the problem and what you did to fix it.

Cheers
MikeL_4
Super Advisor

Re: yum install gcc issue

Peter

I removed the rpm that was failing the upgrade, and dependencies.. Then installed as new install and it pulled in dependencies and loaded clean..