AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

Installing samba and other packages from AIX toolbox using yum fails dependencies

  • 1.  Installing samba and other packages from AIX toolbox using yum fails dependencies

    Posted Thu March 12, 2020 11:37 PM

    Originally posted by: makath99


    I am trying to install samba v4 using the AIX yum package manager.

    yum was installed from the AIX toolbox, and installed ok. The yum repositories can be queried and used by the yum manager.

    When I try to install samba, I get quite a few unresolved dependencies and samba fails to install. I have attempted to install some of them manually/individually, and have had mixed success.

     

    One of the packages it requires is dbus. Here's the output from dbus deplist:

    root:e360_test:/:# yum deplist dbus

    Finding dependencies:

    package: dbus.ppc 1.12.16-1

    dependency: /usr/bin/env

    Unsatisfied dependency

    dependency: expat >= 2.2.4

    provider: expat.ppc 2.2.9-1

    dependency: libX11.a(shr4.o)

    Unsatisfied dependency

    dependency: libX11.a(shr_64.o)

    Unsatisfied dependency

    dependency: libc.a(shr.o)

    Unsatisfied dependency

    dependency: libc.a(shr_64.o)

    Unsatisfied dependency

    dependency: libexpat.a(libexpat.so.1)

    provider: expat.ppc 2.2.9-1

    dependency: libgcc >= 6.3.0-1

    provider: libgcc.ppc 8.3.0-1

    dependency: libgcc_s.a(shr.o)

    provider: libgcc6.ppc 6.3.0-1

    provider: libgcc.ppc 8.3.0-1

    dependency: libpthread.a(shr_xpg5.o)

    Unsatisfied dependency

    dependency: libpthread.a(shr_xpg5_64.o)

    Unsatisfied dependency

     

    Note the dependencies like /usr/bin/env. This is installed and is part of bos.rte.shell

    root:e360_test:/:# lslpp -w /usr/bin/env

    File Fileset Type

    ----------------------------------------------------------------------------

    /usr/bin/env bos.rte.shell File

     

    For libX11.a, I installed the X11 packages required to install this library (even though this LPAR doesn't need them, grrrr):

    root:e360_test:/:# lslpp -w /usr/lib/libX11.a

    File Fileset Type

    ----------------------------------------------------------------------------

    /usr/lib/libX11.a X11.base.lib Symlink

     

    dbus deplist still fails. I did some googling and found that perhaps my virtual package AIX-rpm was out of date. So I updated it:

    root:e360_test:/:# rpm -qa | grep AIX

    AIX-rpm-7.2.4.0-7.ppc

    root:e360_test:/:# updtvpkg

    Please wait...

    root:e360_test:/:# rpm -qa | grep AIX

    AIX-rpm-7.2.4.0-8.ppc

     

    deplist still fails:

     

    root:e360_test:/:# yum deplist dbus

    Finding dependencies:

    package: dbus.ppc 1.12.16-1

    dependency: /usr/bin/env

    Unsatisfied dependency

    dependency: expat >= 2.2.4

    provider: expat.ppc 2.2.9-1

    dependency: libX11.a(shr4.o)

    Unsatisfied dependency

    dependency: libX11.a(shr_64.o)

    Unsatisfied dependency

    dependency: libc.a(shr.o)

    Unsatisfied dependency

    dependency: libc.a(shr_64.o)

    Unsatisfied dependency

    dependency: libexpat.a(libexpat.so.1)

    provider: expat.ppc 2.2.9-1

    dependency: libgcc >= 6.3.0-1

    provider: libgcc.ppc 8.3.0-1

    dependency: libgcc_s.a(shr.o)

    provider: libgcc6.ppc 6.3.0-1

    provider: libgcc.ppc 8.3.0-1

    dependency: libpthread.a(shr_xpg5.o)

    Unsatisfied dependency

    dependency: libpthread.a(shr_xpg5_64.o)

    Unsatisfied dependency

    root:e360_test:/:#

     

    Libc.a also installed:

    root:e360_test:/:# ls -l /usr/lib/libc.a

    lrwxrwxrwx 1 bin bin 19 Feb 18 11:50 /usr/lib/libc.a -> /usr/ccs/lib/libc.a

    root:e360_test:/:#

    root:e360_test:/:# lslpp -w /usr/lib/libc.a

    File Fileset Type

    ----------------------------------------------------------------------------

    /usr/lib/libc.a bos.rte.libc Symlink

     

     

    This is just one of many. Something wrong here no doubt. I have tried it on two different LPARs with exactly the same result.

    Current levels:

    root:e360_test:/:# lslpp -L rpm.rte

    Fileset Level State Type Description (Uninstaller)

    ----------------------------------------------------------------------------

    rpm.rte 4.13.0.11 C F RPM Package Manager

     

    root:e360_test:/:# oslevel -s

    7200-04-01-1939

    root:e360_test:/:# yum --version

    3.4.3

    Installed: yum-3.4.3-7.noarch at 2020-02-20 03:21

    Built : None at 2019-03-04 11:12

    Committed: Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> at 2019-03-05

    root:e360_test:/:#

     

    Any help greatly appreciated. Thanks.

     



  • 2.  Re: Installing samba and other packages from AIX toolbox using yum fails dependencies

    Posted Fri March 13, 2020 02:42 AM

    Originally posted by: AyappanP


    Don't get confused with the "Unsatisfied dependency" showing the deplist output.

    It merely tells that those libraries are not present in the yum repos. Those libraries are part of AIX base OS and AIX-rpm ( the virtual package entry in rpm database for AIX base OS libraries & binaries ) "provides" it. 

    You can state the real error here when you tried to install samba. 



  • 3.  Re: Installing samba and other packages from AIX toolbox using yum fails dependencies

    Posted Sun March 15, 2020 11:23 PM

    Originally posted by: makath99


    Thanks, I was too focussed on resolving the dependencies that I had neglected to retry the install, i.e. I was running "yum deplist samba" expecting that I needed those resolved before the install would work. So I went back over what I'd been doing and realised I hadn't actually tried "yum install samba" after I'd rebuilt the AIX virtual package. So I tried that, and it worked this time.

    Thanks again.