LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem with YUM - Can't find the dependencie! (https://www.linuxquestions.org/questions/linux-software-2/problem-with-yum-cant-find-the-dependencie-745767/)

Victor.W 08-07-2009 04:00 AM

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 :D)

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.

Simon Bridge 08-07-2009 04:24 AM

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

Victor.W 08-07-2009 04:25 AM

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 :/

Victor.W 08-07-2009 04:33 AM

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 :doh:

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!

Simon Bridge 08-07-2009 06:11 AM

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.

Victor.W 08-07-2009 07:51 AM

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.

datopdog 08-07-2009 08:10 AM

ruby is included in RHEL since 4. Maybe you are running the desktop version of RHEL

Victor.W 08-07-2009 08:46 AM

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


lazlow 08-07-2009 01:00 PM

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).

Simon Bridge 08-08-2009 02:32 AM

Quote:

Originally Posted by Victor.W (Post 3634712)
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.

Victor.W 08-10-2009 03:50 AM

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!|


Simon Bridge 08-10-2009 08:46 AM

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?


All times are GMT -5. The time now is 10:04 AM.