Resolve missing package dependencies when trying to install octave

19,181

Solution 1

The proper solution to this problem is to add the "Optional" channel (rhel-x86_64-workstation-optional-6) to your RHN configuration for this host. It has the fftw package that provides the dependencies you need. The problem with the other answer, which is to use RepoForge, is that that repository provides duplicate packages to what is provided by EPEL and/or RHEL, and can cause yum conflicts down the road.

Solution 2

yum is a flexible tool for package management. If you want to know what package provides the file libfftw3.so.3, you could query with yum like this.

yum whatprovides */libfftw3.so.3

If the package that provides the file exists in your enabled repositories, it will return information similar to this.

fftw3-3.1.1-1.el5.rf.i386 : Fast Fourier Transform library
Repo        : rpmforge
Matched from:
Filename    : /usr/lib/libfftw3.so.3

In this specific case, I believe you also need the RepoForge (formerly RPMForge) repository enabled on your system. You can enable the repository by installing the RepoForge rpm package.

sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Now when you perform yum install octave, yum will install the package and the required dependencies automatically.

Edit: As pointed out, it's potentially risky to mix RepoForge and EPEL directories on the same system unless you really know what you are doing (enable/disable repositories, protect packages, etc). The lesson on yum functionality remains relevant.

Share:
19,181

Related videos on Youtube

Cassie
Author by

Cassie

Updated on September 18, 2022

Comments

  • Cassie
    Cassie over 1 year

    I am trying to install the octave software package on a RHEL 6 Workstation. I have installed the epel-release 6.5 package to enable the EPEL package repository. When I try to install the octave using yum, the following errors are returned:

    Error: Package: 6:octave-3.4.2-2.el6.x86_64 (epel)
               Requires: libfftw3.so.3()(64bit)
    Error: Package: 6:octave-3.4.2-2.el6.x86_64 (epel)
               Requires: libfftw3f.so.3()(64bit)
    Error: Package: 6:octave-3.4.2-2.el6.x86_64 (epel)
               Requires: libglpk.so.0()(64bit)
    

    I tried to use yum to search for the packages libfftw3, libfftw3f, libglpk, fftw3,fftw3f, and glpk. However, it was not able to find any of these packages. I am wondering if anybody knows

    1. Should I try to find the packages by the names fftw3,fftw3f, and glpk? Or should I search for the names libfftw3, libfftw3f, libglpk?
    2. Does this mean I have to try to find the required dependency packages online? Is there a reliable website providing these RPM packages for RHEL Workstation 6?
    • Admin
      Admin about 12 years
      Hi All, I finally just ramdonlly found those fftw and glpk packages online to install octave. So far it works and hope it will not cause any problem.
  • jsbillings
    jsbillings about 12 years
    It's not a good idea to mix RPMForge and EPEL.
  • George M
    George M about 12 years
    Does the 'Optional' channel require an additional entitlement?
  • Nils
    Nils about 12 years
    @jsbillings even if you installed yum-priorities and have given precedence of one or the other?
  • jsbillings
    jsbillings about 12 years
    @uther: No, it should not require an additional entitlement, it should be part of your workstation entitlement.