1828148 Members
2585 Online
109975 Solutions
New Discussion

Re: install rpm problem

 
SOLVED
Go to solution
peterchu
Super Advisor

install rpm problem

When I tried to installed the rpm , it pop the below messages , I am RH 8.0 / 2.4.18-14 kernel , the thress versions of rpm are for RH 7.0 /8.0/9.0 , but all are unable to install , could suggest what is wrong ? thx

# rpm -ivh gcc-3.2-7.i386.rpm
error: Failed dependencies:
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

#rpm -ivh gcc-3.2.2-5.i386.rpm
error: Failed dependencies:
binutils >= 2.12.90.0.7-1 is needed by gcc-3.2.2-5
cpp = 3.2.2-5 is needed by gcc-3.2.2-5
glibc-devel >= 2.2.90-12 is needed by gcc-3.2.2-5
libgcc >= 3.2.2-5 is needed by gcc-3.2.2-5

#rpm -ivh gcc-2.96-110.i386.rpm
error: Failed dependencies:
binutils >= 2.11.93.0.2-6 is needed by gcc-2.96-110
cpp = 2.96-110 is needed by gcc-2.96-110
glibc-devel is needed by gcc-2.96-110

8 REPLIES 8
Alexander Chuzhoy
Honored Contributor

Re: install rpm problem

It needs few more underlying packages .
So to install gcc-3.2-7.i386.rpm
you need first install binutils,glibc-devel ,etc
Mark Grant
Honored Contributor

Re: install rpm problem

All of these are packages that need to be installed before you can successfully install your original rpm. It's called "dependency hell". You can "force" them with the --nodeps option but I really really would not recommend this with a gcc upgrade.

You really do have to follow the trail of errors, installing the packages as you go.
Never preceed any demonstration with anything more predictive than "watch this"
peterchu
Super Advisor

Re: install rpm problem

thx reply , but I have tried to install the rpm -- > gcc-java-3.2-7.i386.rpm , gcc-gnat-3.2-7.i386.rpm , gcc-g77-3.2-7.i386.rpm , gcc-c++-3.2-7.i386.rpm , all have the same error , what rpm I need to install first , then install the gcc-3.2-7.i386.rpm ? thx.
Alexander Chuzhoy
Honored Contributor

Re: install rpm problem

start with binutils...Then if you'll try to install gcc-2.96-110.i386.rpm you'll see that the list of needed packages is shorter...
peterchu
Super Advisor

Re: install rpm problem

thx reply , but what is binutils you mean ? is it a rpm ? could you please give me a beief instruction ? thx
peterchu
Super Advisor

Re: install rpm problem

I understand it , thx all replies
dirk dierickx
Honored Contributor
Solution

Re: install rpm problem

you should be using 'rpm' on its own. there are tools available like up2date, apt and yum that will resolve all rpm dependencies for you, and you no longer have to do the dirty work of hunting all these down.
as an extra those tools can also be used to keep your system up to date.

Re: install rpm problem

When trying to install/update use the cap "U"
option rather than the "i".
For example: rpm -Uvh gcc-3.2-7.i386.rpm would be better..

When you find the binutils and the glibc-devel packages append them to the original rpm command and the dependencies will be resolved..
Try not to figure out which one to do first.. Do them all together.. ie:
rpm -Uvh gcc-3.2-7....rpm binutils-2.12...rpm glibc-devel-2.2...rpm

One source or starting place for packages is freshrpms.net. They have the apt-get and synaptic programs to aid in automatically installing and upgrading. You can also download individual packages..

have fun..