LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2016, 04:28 AM   #1
packets
Member
 
Registered: Oct 2005
Posts: 314

Rep: Reputation: 30
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
 
Old 11-17-2016, 08:10 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,754
Blog Entries: 14

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
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.
 
1 members found this post helpful.
Old 11-17-2016, 12:08 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,037

Rep: Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458
for the very aging rhel5.11
use YUM!!!!!!

to update to the current glibc for rhel5 in the rhn repo
Code:
su -
yum update
 
1 members found this post helpful.
Old 11-21-2016, 02:59 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,754
Blog Entries: 14

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
It's so sad when OPs get kidnapped after asking questions.
 
Old 11-21-2016, 08:52 PM   #5
packets
Member
 
Registered: Oct 2005
Posts: 314

Original Poster
Rep: Reputation: 30
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
 
Old 11-21-2016, 09:03 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,037

Rep: Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458Reputation: 2458
then contact redhat
you do have the REQUIRED license ? right ?

that gets you support

open a new ticket
 
Old 11-22-2016, 10:45 AM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,754
Blog Entries: 14

Rep: Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052Reputation: 1052
Quote:
Originally Posted by packets View Post
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.
 
  


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
[SOLVED] Download rpm package with dependencies smilemukul Linux - Newbie 3 10-10-2012 11:56 PM
does rpm figure out package dependencies? deostroll Linux - Software 1 08-18-2009 05:09 AM
Listing Dependencies of RPM Package shoaibi Linux - Newbie 2 09-18-2007 03:45 PM
How can I install a rpm package and get the dependencies installed automatically? sceadu Fedora 10 01-06-2006 04:10 PM
Can't install Mplayer due to unresolvable dependencies Crushing Belial Debian 5 12-09-2005 01:03 PM


All times are GMT -5. The time now is 10:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration