LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 02-07-2013, 04:48 PM   #1
hokie92grad
LQ Newbie
 
Registered: May 2009
Location: Virginia
Posts: 11

Rep: Reputation: 0
rpm failed dependency even though library is installed


I am attempting to install an rpm that I generated on a RHEL6.1 server. The rpm I created is just a standard jre 1.6.0_30 release that I want installed in a specific location on the target machine.

When I try to install the rpm (using either yum or rpm) I get a failed dependency:
error: Failed dependcies:
libodbc.so()(64bit) is needed by jre_1_6_0_30....
libodbcinst.so()(64bit) is needed by jre_1_6_0_30....

Both of these libraries are contained in the RHEL rpm
unixODBC-2.2.14-11.el6.x86_64
which is installed on both the machine that I am generating the rpm from and the machine that I am installing the rpm on.

I have tried several things so far, including uninstalling unixODBC and reinstalling it, installing both the 32 and 64 bit versions, ensuring that the exact same version is included on both the generating machine and the installing machine.

I have also extracted the rpm manually using rpm2cpio|cpio and run ldd on the library that depends on libodbc.so and ldd was able to find the correct version of the library.

I am at a loss as to why rpm/yum cannot find the dependency even though the library was installed using yum and that ldd can find the library using a manually extracted version of the jre.

Is there anything else that I can try, has anyone seen this behavior before?
 
Old 02-07-2013, 05:21 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by hokie92grad View Post
I am attempting to install an rpm that I generated on a RHEL6.1 server. The rpm I created is just a standard jre 1.6.0_30 release that I want installed in a specific location on the target machine.
Location alteration is not a valid reason in my book and neither would be a "repack". Why complicate things unnecessary when you can use relocation instead?


Quote:
Originally Posted by hokie92grad View Post
Is there anything else that I can try, has anyone seen this behavior before?
I didn't see you try a 'rpm -i --nodeps'? Anyway, if you search around a bit you'll find it happened with all sorts of official Java packages as well. If you want to re-spec the thing see if post #4 here works for you: https://www.centos.org/modules/newbb...topic_id=12749.
 
Old 02-07-2013, 05:27 PM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
When you created the package did you define the Requires or let rpmbuild automatically resolve them?
 
Old 02-08-2013, 07:15 AM   #4
hokie92grad
LQ Newbie
 
Registered: May 2009
Location: Virginia
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Location alteration is not a valid reason in my book and neither would be a "repack". Why complicate things unnecessary when you can use relocation instead?
It's unfortunately the way we decided to CM certain software packages, and in order to maintain consistency with the install process that we have, I am following the same methodology. We could have CM'd the package as part of the OS install, but we decided to package all of the base build and runtime environment packages separately.

Quote:
Originally Posted by unSpawn View Post
I didn't see you try a 'rpm -i --nodeps'?
I felt that would be cheating and working around a problem. Of course if it is an unresolvable "feature" then I will resort to that.

Quote:
Originally Posted by unSpawn View Post
Anyway, if you search around a bit you'll find it happened with all sorts of official Java packages as well. If you want to re-spec the thing see if post #4 here works for you: https://www.centos.org/modules/newbb...topic_id=12749.
Quote:
Originally Posted by kbp View Post
When you created the package did you define the Requires or let rpmbuild automatically resolve them?
I let rpmbuild automatically resolve the dependencies, it appears that post #4 from the centos topic says to turn off the auto resolve and manually add the requires for those libraries. What is it about the auto-resolver that would prevent the install from finding the libraries? Is there a "feature" in rpm that could be fixed, or is it more involved than that? Auto resolving is always much easier than manually setting dependencies.
 
Old 02-08-2013, 07:26 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by hokie92grad View Post
It's unfortunately the way we decided to CM certain software packages
Clear. Blisters, sitting on them and all that...


Quote:
Originally Posted by hokie92grad View Post
What is it about the auto-resolver that would prevent the install from finding the libraries? Is there a "feature" in rpm that could be fixed, or is it more involved than that?
Debug the "auto-resolver" to determine its logic?
 
  


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
installed rpm packages database: explicit and dependency packages leniviy Linux - Newbie 4 09-07-2012 03:31 AM
yum: failed dependency for installed perl module stehman Linux - Server 5 10-17-2011 12:53 PM
i have rhel es 4 installed. which is the rpm to install pthread library? jaishripatil Linux - Software 1 03-03-2007 05:10 AM
ghostscript-library-8.15rc1-29.i586.rpm cannot be installed Sahayam Suse/Novell 0 05-30-2006 07:15 AM
Says Failed dependency even when libpcap.so.0 installed. X-Unix Mandriva 2 09-13-2004 11:19 PM


All times are GMT -5. The time now is 02:59 PM.

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