LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2009, 04:00 AM   #1
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
Problem with YUM - Can't find the dependencie!


Hi to all!

First of all, i'd like to apologize for all the mistakes i'll probably make writing in English. As it's not my 'natural' langage, i'm doing my best there! ^^


Anyway.
Here's the problem I'm facing.

I'm kinda noob to Linux, and running on Red Hat Entreprise Linux 5 atm.
I'd like to install a package called "rrdtool" (as there's Nagios running on the server, could be usefull to provide graphs, stats, and stuff).
As I RTFM'd, I heard yum is the tool I have to use.
(yeah, i'm a good newbie )

Next is the log:
Code:
root@yzi351:/tmp$ yum list rrdtool

Loaded plugins: security
Available Packages
rrdtool.i386                                                         1.3.8-2.el5.rf                                                         rpmforge
Install log:
Code:
root@yzi351:/tmp$ yum install rrdtool.i386

Loaded plugins: security
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Processing Dependency: perl(RRDp) for package: rrdtool
--> Running transaction check
---> Package perl-rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
---> Package rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
--> Finished Dependency Resolution
rrdtool-1.3.8-2.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
rrdtool-1.3.8-2.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
Error: Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
But here is where the problem appears.
I thought a yum list ruby would tell me which package I had to download/install, but the answer is:
Code:
root@yzi351:/tmp$ yum list ruby

Loaded plugins: security
Error: No matching Packages to list

And even when I try this, it fails:
Code:
root@yzi351:/tmp$ yum install ruby

Loaded plugins: security
Setting up Install Process
Parsing package install arguments
No package ruby available.
Nothing to do


So again, as I'm a beginner, sorry if the answer may appear obvious for you but I have to say i'm stuck right now :/

Thanks for helping and answering,
Kind Regards!

Victor.
 
Old 08-07-2009, 04:24 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
That means that ruby is not available from the repos you have installed.

Do you, this is important, have a paid support contract with RH?

There is supposed to be a ruby rpm in:
http://rubyworks.rubyforge.org/redhat/
... have not looked - you gotta hunt, or add the rubyworks repo. However, the install instruction I'm seeing suggest to me that ruby is supposed to be available from regular sources.
http://www.mashd.cc/2009/05/25/rails-install-on-rhel5
 
Old 08-07-2009, 04:25 AM   #3
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Me again.
I _maybe_ foudn the solution.

Here is what I've done:
Code:
root@yzi351:/tmp$ yum list "*ruby*"

Loaded plugins: security
Available Packages
graphviz-ruby.i386                                                     2.22.0-4.el5.rf                                                      rpmforge
ruby-fam.i386                                                          0.2.0-1.el5.rf                                                       rpmforge
ruby-rpm.i386                                                          1.2.3-1.el5.rf                                                       rpmforge
ruby-rrdtool.i386                                                      1.3.8-2.el5.rf                                                       rpmforge
ruby-shadow.i386                                                       1.4.1-1.el5.rf                                                       rpmforge

Trying to install now, will update the topic soon

edit: Indeed Simon Bridge, I've looked on this website but it seems nothing dealing with ruby is installed on the server :/

Last edited by Victor.W; 08-07-2009 at 04:26 AM.
 
Old 08-07-2009, 04:33 AM   #4
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Sorry for double post, but here's the update of my situation.
According to the yum list "*ruby*" results, I tried to install each one of the package given.

But, once again, dependencies problems

Code:
root@yzi351: yum install ruby-rrdtool.i386

Loaded plugins: security
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ruby-rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: rrdtool = 1.3.8 for package: ruby-rrdtool
--> Processing Dependency: librrd.so.4 for package: ruby-rrdtool
--> Processing Dependency: libruby.so.1.8 for package: ruby-rrdtool
--> Processing Dependency: ruby-devel for package: ruby-rrdtool
--> Running transaction check
---> Package rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Processing Dependency: perl(RRDp) for package: rrdtool
---> Package ruby-rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: libruby.so.1.8 for package: ruby-rrdtool
--> Processing Dependency: ruby-devel for package: ruby-rrdtool
--> Running transaction check
---> Package perl-rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
---> Package rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: ruby for package: rrdtool
---> Package ruby-rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Processing Dependency: libruby.so.1.8 for package: ruby-rrdtool
--> Processing Dependency: ruby-devel for package: ruby-rrdtool
--> Finished Dependency Resolution
ruby-rrdtool-1.3.8-2.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: ruby-devel is needed by package ruby-rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
rrdtool-1.3.8-2.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
ruby-rrdtool-1.3.8-2.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: libruby.so.1.8 is needed by package ruby-rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
Error: Missing Dependency: ruby is needed by package rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
Error: Missing Dependency: ruby-devel is needed by package ruby-rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
Error: Missing Dependency: libruby.so.1.8 is needed by package ruby-rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
Same when I try installing ruby-rpm:
Code:
root@yzi351: yum install ruby-rpm.i386

Loaded plugins: security
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package ruby-rpm.i386 0:1.2.3-1.el5.rf set to be updated
--> Processing Dependency: ruby >= 1.8.1 for package: ruby-rpm
--> Processing Dependency: libdb-4.2.so for package: ruby-rpm
--> Processing Dependency: libruby.so.1.8 for package: ruby-rpm
--> Finished Dependency Resolution
ruby-rpm-1.2.3-1.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: ruby >= 1.8.1 is needed by package ruby-rpm-1.2.3-1.el5.rf.i386 (rpmforge)
ruby-rpm-1.2.3-1.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: libruby.so.1.8 is needed by package ruby-rpm-1.2.3-1.el5.rf.i386 (rpmforge)
ruby-rpm-1.2.3-1.el5.rf.i386 from rpmforge has depsolving problems
  --> Missing Dependency: libdb-4.2.so is needed by package ruby-rpm-1.2.3-1.el5.rf.i386 (rpmforge)
Error: Missing Dependency: libruby.so.1.8 is needed by package ruby-rpm-1.2.3-1.el5.rf.i386 (rpmforge)
Error: Missing Dependency: libdb-4.2.so is needed by package ruby-rpm-1.2.3-1.el5.rf.i386 (rpmforge)
Error: Missing Dependency: ruby >= 1.8.1 is needed by package ruby-rpm-1.2.3-1.el5.rf.i386 (rpmforge)

I've been looking to a looot of topics dealing with dependencies problems, found different solutions, but I just do'nt know what to do with this one...

Thanks for answering!
 
Old 08-07-2009, 06:11 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
rpm does not look for and install dependencies - that is yum's job.
With rpm, you read what the missing packages are, then go get them and install them first.
If you have a support contract, remember I said it was important, you can complain about yum not resolving the deps in this case to RHN. They will be able to tell you what is happening.
 
Old 08-07-2009, 07:51 AM   #6
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
The fact is none of the packages needed can be found on Internet.
I just sent a email to RedHat Official Support (as in France, hardly anybody works on Friday afternoon -_-)


If anybody heard about some problems dealing with ruby on RHEL, feel free to post!
Thanks again for answering me

Victor.
 
Old 08-07-2009, 08:10 AM   #7
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
ruby is included in RHEL since 4. Maybe you are running the desktop version of RHEL
 
Old 08-07-2009, 08:46 AM   #8
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I don't knpw, I've checked on my company's account on RHEL website but found nothing.

Maybe this would help?
Code:
root@yzi351:/tmp$ uname -a
Linux yzi351 2.6.18-128.1.10.el5PAE #1 SMP Wed Apr 29 14:24:53 EDT 2009 i686 i686 i386 GNU/Linux
 
Old 08-07-2009, 01:00 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Post the results of "yum repolist". From the look of your yum posts(cut and paste), it does not look like the RH repo is active (possibly disabled on your system).
 
Old 08-08-2009, 02:32 AM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by Victor.W View Post
The fact is none of the packages needed can be found on Internet.
Well that ain't quite true:
http://rubyworks.rubyforge.org/redhat/5/RPMS/i386/
... for RHEL5 i386 - a quick skim shows all ruby stuff on your list are there.

However - use official packages where you can - especially as you have official support through your company. You don't want to undermine your company's support contract.

Quote:
I just sent a email to RedHat Official Support (as in France, hardly anybody works on Friday afternoon -_-)
Cool - don't expect immediate feedback - but since you have commercial support you aught to use it, just on principle.
Quote:
If anybody heard about some problems dealing with ruby on RHEL, feel free to post!
There is a positive lack of problems with ruby in RHEL - the very fact that all howtos about installing ruby and related fail to mention anything special you have to do to get hold of it speaks to how this is supposed to be a no brainer.

While waiting for RHN to get back to you, you can still investigate your repolist - as others have suggested. See what we can see.

Last edited by Simon Bridge; 08-08-2009 at 02:33 AM.
 
Old 08-10-2009, 03:50 AM   #11
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hi again.
First of all, thanks to y'all my problem is now solved.

Here's what i've done, in case someone hit this topic

  • I downloaded the ruby-1.8.6.111-1.i386.rpm from Simon Bridge post.
    Tried to install it with yum:
    Code:
    root@yzi351: yum install ruby-1.8.6.111-1.i386.rpm
    ...
    Error: Missing Dependency: ruby-devel is needed by package ruby-rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
    Error: Missing Dependency: libruby.so.1.8 is needed by package ruby-rrdtool-1.3.8-2.el5.rf.i386 (rpmforge)
  • Next, I tried to install ruby-libs-1.8.6.111-1.i386.rpm to solve dependencies problems:
    Code:
    root@yzi351:yum install uby-libs-1.8.6.111-1.i386.rpm
    
    Loaded plugins: security
    Setting up Install Process
    Parsing package install arguments
    Examining ruby-libs-1.8.6.111-1.i386.rpm: ruby-libs-1.8.6.111-1.i386
    Marking ruby-libs-1.8.6.111-1.i386.rpm to be installed
    Resolving Dependencies
    --> Running transaction check
    ---> Package ruby-libs.i386 0:1.8.6.111-1 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ===================================================================================================================================================
     Package                       Arch                     Version                           Repository                                          Size
    ===================================================================================================================================================
    Installing:
     ruby-libs                     i386                     1.8.6.111-1                       ruby-libs-1.8.6.111-1.i386.rpm                     2.6 M
    
    Transaction Summary
    ===================================================================================================================================================
    Install      1 Package(s)
    Update       0 Package(s)
    Remove       0 Package(s)
    
    Total download size: 2.6 M
    Is this ok [y/N]: y
    Downloading Packages:
    warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 106de074
    
    
    Public key for ruby-libs-1.8.6.111-1.i386.rpm is not installed
  • I searched for answers about this NOKEY case, and found tips.
    I first made the next line to find where the GPG's are (needed to verify the key from the .rpm if I understood well):
    Code:
    root@yzi351: find / -name "*GPG*"
    Then:
    Code:
    root@yzi351:rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
    But still the same problem...
    Code:
    Public key for ruby-libs-1.8.6.111-1.i386.rpm is not installed
  • I finally solved my problem by opening the next file:
    Code:
    root@yzi351:vi /etc/yum.conf
    I replace gpgcheck=1 by gpgcheck=0, problem solved



Not sure if it could be a problem letting gpcheck set to 0, but it solved my problem and my final yum install ruby-1.8.6.111-1.i386.rpmwas successfull
Code:
root@yzi351: yum install rrdtool-1.3.8-1.el5.wrl.i386.rpm
Loaded plugins: security
rpmforge                                                                                                                    | 1.1 kB     00:00
Setting up Install Process
Parsing package install arguments
Examining rrdtool-1.3.8-1.el5.wrl.i386.rpm: rrdtool-1.3.8-1.wrl.i386
Marking rrdtool-1.3.8-1.el5.wrl.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.i386 0:1.3.8-1.wrl set to be updated
--> Processing Dependency: perl(RRDp) for package: rrdtool
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Running transaction check
---> Package perl-rrdtool.i386 0:1.3.8-2.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================
 Package                        Arch                   Version                            Repository                                          Size
===================================================================================================================================================
Installing:
 rrdtool                        i386                   1.3.8-1.wrl                        rrdtool-1.3.8-1.el5.wrl.i386.rpm                   904 k
Installing for dependencies:
 perl-rrdtool                   i386                   1.3.8-2.el5.rf                     rpmforge                                            51 k

Transaction Summary
===================================================================================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total size: 955 k
Total download size: 904 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-rrdtool                                      [1/2]
  Installing     : rrdtool                                           [2/2]

Installed: rrdtool.i386 0:1.3.8-1.wrl
Dependency Installed: perl-rrdtool.i386 0:1.3.8-2.el5.rf
Complete!|

Last edited by Victor.W; 08-10-2009 at 04:45 AM.
 
Old 08-10-2009, 08:46 AM   #12
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
gpgcheck=0 is a problem - that is how your computer authenticates the downloaded package to make sure it is the same one you asked for and not, say, a malicious substitute.

I think rubyworks has instructions to add their yum repo.

I take it RHN have not been helpful?
 
  


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
Package/dependencie problem GardarS Linux - Desktop 3 12-15-2008 02:10 PM
w32codecs dependencie tronica Debian 4 11-03-2006 03:32 PM
How to ignore a dependencie when apt-getting a soft ? Stéphane Ascoët Debian 1 10-23-2004 12:09 PM
GLIBC_2.3 Dependencie for SuSE 8.0 SuSE_User Linux - Software 1 01-18-2004 08:23 PM
Dependencie Hell WMCrazyOne Linux - General 15 06-04-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:02 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
Open Source Consulting | Domain Registration