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
  • 1.  yum on AIX

    Posted Wed January 09, 2019 02:23 PM

    Originally posted by: AntonMarquez


    Hi Team,

     

    When I am trying to install yum on AIX 7.2 TL2 I get the below error . Can someone suggest why is this ?. I am using the latest yum.sh script from AIX website.

     

    root@mwfsq2-KDC:/tmp>./yum.sh
    Attempting download of rpm.rte & yum_bundle.tar ...
    Installing rpm.rte at the latest version ...
    This may take several minutes depending on the number of rpms installed...
    +-----------------------------------------------------------------------------+
                        Pre-installation Verification...
    +-----------------------------------------------------------------------------+
    Verifying selections...done
    Verifying requisites...done
    Results...

    WARNINGS
    --------
      Problems described in this section are not likely to be the source of any
      immediate or serious failures, but further actions may be necessary or
      desired.

      Already Installed
      -----------------
      The number of selected filesets that are either already installed
      or effectively installed through superseding filesets is 1.  See
      the summaries at the end of this installation for details.

      NOTE:  Base level filesets may be reinstalled using the "Force"
      option (-F flag), or they may be removed, using the deinstall or
      "Remove Software Products" facility (-u flag), and then reinstalled.

      << End of Warning Section >>

    +-----------------------------------------------------------------------------+
                       BUILDDATE Verification ...
    +-----------------------------------------------------------------------------+
    Verifying build dates...done
    FILESET STATISTICS
    ------------------
        1  Selected to be installed, of which:
            1  Already installed (directly or via superseding filesets)
      ----
        0  Total to be installed


    Pre-installation Failure/Warning Summary
    ----------------------------------------
    Name                      Level           Pre-installation Failure/Warning
    -------------------------------------------------------------------------------
    rpm.rte                   4.13.0.5        Already installed


    Extracting yum_bundle.tar ...
    x ca-certificates-2016.10.7-2.aix6.1.ppc.rpm, 214726 bytes, 420 media blocks.
    x curl-7.52.1-1.aix6.1.ppc.rpm, 533288 bytes, 1042 media blocks.
    x db-4.8.24-3.aix6.1.ppc.rpm, 2897799 bytes, 5660 media blocks.
    x gdbm-1.8.3-5.aix5.2.ppc.rpm, 56991 bytes, 112 media blocks.
    x gettext-0.19.7-1.aix6.1.ppc.rpm, 4036762 bytes, 7885 media blocks.
    x glib2-2.14.6-2.aix5.2.ppc.rpm, 1686134 bytes, 3294 media blocks.
    x pysqlite-1.1.7-2.aix6.1.ppc.rpm, 51749 bytes, 102 media blocks.
    x python-2.7.10-1.aix6.1.ppc.rpm, 23333701 bytes, 45574 media blocks.
    x python-devel-2.7.10-1.aix6.1.ppc.rpm, 15366474 bytes, 30013 media blocks.
    x python-iniparse-0.4-1.aix6.1.noarch.rpm, 37912 bytes, 75 media blocks.
    x python-pycurl-7.19.3-1.aix6.1.ppc.rpm, 162093 bytes, 317 media blocks.
    x python-tools-2.7.10-1.aix6.1.ppc.rpm, 830446 bytes, 1622 media blocks.
    x python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm, 158584 bytes, 310 media blocks.
    x readline-6.1-2.aix6.1.ppc.rpm, 489547 bytes, 957 media blocks.
    x sqlite-3.15.2-1.aix6.1.ppc.rpm, 3570302 bytes, 6974 media blocks.
    x yum-3.4.3-5.aix6.1.noarch.rpm, 1380725 bytes, 2697 media blocks.
    x yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm, 62283 bytes, 122 media blocks.


    Checking whether any of the rpms from yum_bundle are already installed ...

    ca-certificates-2016.10.7-2 will be installed ...
    curl-7.52.1-1 will be installed ...
    db-4.8.24-3 will be installed ...
    gdbm-1.8.3-5 will be installed ...
    gettext-0.17-1 is installed.  Updating to gettext-0.19.7-1 ...
    Skipping glib2-2.14.6-2 as higher version is already installed.
    Please make sure these packages are from the Toolbox as there is no guarantee that
    third party packages are compatible with Toolbox packages.

    pysqlite-1.1.7-2 will be installed ...
    python-2.7.10-1 will be installed ...
    python-devel-2.7.10-1 will be installed ...
    python-iniparse-0.4-1 will be installed ...
    python-pycurl-7.19.3-1 will be installed ...
    python-tools-2.7.10-1 will be installed ...
    python-urlgrabber-3.10.1-1 will be installed ...
    readline-5.2-3 is installed.  Updating to readline-6.1-2 ...
    sqlite-3.15.2-1 will be installed ...
    yum-3.4.3-5 will be installed ...
    yum-metadata-parser-1.1.4-2 will be installed ...

    Installing the packages...

    error: Failed dependencies:
            libreadline.a(libreadline.so.5) is needed by (installed) pcre-7.9-2.ppc

    Yum installation failed.
    If the failure was due to a space issue, increase the size of /opt and re-run yum.sh
    or install the downloaded packages from /tmp/yum-20190109140446 manually.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.

    root@mwfsq2-KDC:/tmp>



  • 2.  Re: yum on AIX

    Posted Thu January 10, 2019 01:59 AM

    Originally posted by: AyappanP


    pcre rpm is not from Toolbox. You can remove pcre for the time being and later install it through yum.



  • 3.  Re: yum on AIX

    Posted Thu January 10, 2019 03:41 PM

    Originally posted by: AntonMarquez


    I removed pcre and installed yum.sh. However yum repolist tells me that I am missing something.

     

    root@mwfsq2-KDC:/opt/freeware/lib/python2.7>yum repolist
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

            0509-022 Cannot load module /usr/lib/libglib-2.0.a(libglib-2.0.so.0).
            0509-150   Dependent module libpcre.a(libpcre.so.0) could not be loaded.
            0509-022 Cannot load module libpcre.a(libpcre.so.0).
            0509-026 System error: A file or directory in the path name does not exist.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/_sqlitecache.so.
            0509-150   Dependent module /usr/lib/libglib-2.0.a(libglib-2.0.so.0) could not be loaded.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq


    root@mwfsq2-KDC:/opt/freeware/lib/python2.7>

     

     

    Any thoughts ?



  • 4.  Re: yum on AIX

    Posted Fri January 11, 2019 06:55 AM

    Originally posted by: AyappanP


    See this in your first message here

    Skipping glib2-2.14.6-2 as higher version is already installed.
    Please make sure these packages are from the Toolbox as there is no guarantee that
    third party packages are compatible with Toolbox packages."

    So it happened that your glib2 is not from AIX Toolbox and that is creating issue. Fix it.