LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant install rpm package due to dependencies (https://www.linuxquestions.org/questions/linux-newbie-8/cant-install-rpm-package-due-to-dependencies-4175593702/)

packets 11-17-2016 04:28 AM

Cant install rpm package due to dependencies
 
I am installing glibc. Problem is it has failed dependencies but the package it is looking for is installed.

Code:

# rpm -ihv glibc-2.5-118.el5_10.3.i686.rpm
warning: glibc-2.5-118.el5_10.3.i686.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
        glibc-common = 2.5-118.el5_10.3 is needed by glibc-2.5-118.el5_10.3.i686
        libgcc is needed by glibc-2.5-118.el5_10.3.i686
# rpm -qa | grep -i glibc-common
glibc-common-2.5-118.el5_10.3

My machine is RHEL 5 x86_64

Any idea what is happening here?

Another question is when I query package, I will need to append the version.

Code:

# rpm -q libgcc
package libgcc is not installed
# rpm -q libgcc-4.1.2-54.el5
libgcc-4.1.2-54.el5
libgcc-4.1.2-54.el5


MensaWater 11-17-2016 08:10 AM

You mention you're running x86_64 but what you're trying to install is i686 (32 bit).

The standard "rpm -qa" is not showing the architecture (i.e. x86_64 or i686 or i586 or i386).

If you run "rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' |grep glibc-common" it will include
the architecture of the installed package which will likely be (x86_64) e.g.:
glibc-common-2.5-118.el5_10.3 (x86_64)

The dependency of an i686 package would also be i686 so you'd need to find and install:
glibc-common-2.5-118.el5_10.3 (i686).

After that you query would show both architectures installed.

Is there any reason you're not using yum to install the package? Yum is specifically written to identify and install dependencies. Also this is a very old version of glibc.

John VV 11-17-2016 12:08 PM

for the very aging rhel5.11
use YUM!!!!!!

to update to the current glibc for rhel5 in the rhn repo
Code:

su -
yum update


MensaWater 11-21-2016 02:59 PM

It's so sad when OPs get kidnapped after asking questions. :p

packets 11-21-2016 08:52 PM

Quote:

Is there any reason you're not using yum to install the package?
Yes. It is so sad I can't use yum :-( Life would had been easier

John VV 11-21-2016 09:03 PM

then contact redhat
you do have the REQUIRED license ? right ?

that gets you support

open a new ticket

MensaWater 11-22-2016 10:45 AM

Quote:

Originally Posted by packets (Post 5633227)
Yes. It is so sad I can't use yum :-( Life would had been easier

I'm assuming you don't have subscription then.

FYI:
RHEL5 is going EOL in March so you might want to look at moving on to at least RHEL6 or if you can't pay for a subscription change to CentOS6 which is compiled from RHEL6 sources.

P.S. Congratulations on escaping your captors. :D


All times are GMT -5. The time now is 07:33 AM.