AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

yum for AIX Toolbox

Archive User

Archive UserFri December 09, 2016 04:53 AM

Archive User

Archive UserWed December 28, 2016 07:36 PM

Archive User

Archive UserFri June 09, 2017 03:38 PM

Archive User

Archive UserFri July 28, 2017 11:57 AM

Archive User

Archive UserThu November 10, 2016 02:50 PM

Archive User

Archive UserFri April 28, 2017 01:47 AM

Archive User

Archive UserFri April 28, 2017 07:55 AM

Archive User

Archive UserMon May 15, 2017 05:56 AM

Archive User

Archive UserMon May 15, 2017 08:03 AM

Archive User

Archive UserTue August 01, 2017 02:52 PM

  • 1.  yum for AIX Toolbox

    Posted Tue June 28, 2016 09:35 AM

    Originally posted by: sanket


    yum the rpm package manager is now available for AIX opensource Toolbox.
    It allows automatic package installation, updates and dependency management.

    For installing yum on AIX
    -------------------------

    1. Install the rpm.rte with "minimum version" of 4.9.1.3 or greater from ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/
         
    2. Download and install the rpms from yum_bundle_v1.tar from ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/
       This bundle contains yum and all of it's dependency rpms.

    Please go through README-yum from following location for detailed description and known issues of yum on AIX.

    ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/README-yum

     

     



  • 2.  Re: yum for AIX Toolbox

    Posted Thu June 30, 2016 01:25 AM

    Originally posted by: sanket


    The above is also available at following https site

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/README-yum



  • 3.  Re: yum for AIX Toolbox

    Posted Wed October 12, 2016 10:05 AM

    Originally posted by: dieter_mosbach


    I tried to install python from yum_bundle_v1:

    root@sps62001_adm:/mnt/linuxsw/aixtoolbox/yum_bundle_v1# rpm -Uvh python*rpm
    error: Failed dependencies:
            libtcl8.4.so is needed by python-2.7.10-1.ppc
            libtk8.4.so is needed by python-2.7.10-1.ppc

    But tcl and tk are already installed with newer version:

    root@sps62001_adm:/mnt/linuxsw/aixtoolbox/yum_bundle_v1# rpm -q tcl tk
    tcl-8.6.3-1.ppc
    tk-8.6.3-1.ppc

     

    Can you help me?

     



  • 4.  Re: yum for AIX Toolbox

    Posted Wed October 12, 2016 10:48 AM

    Originally posted by: sanket


    tcl/tk is provided by AIX in installp format. Looks like you might have installed them from some other place.

    Please install the AIX provided tcl/tk if they are not already there. You can verify with
    lslpp -l | grep tcl
    and
    rpm -q AIX-rpm --provides | grep tcl

    If it is installed (shows in lslpp) but not showing in AIX-rpm then there is issue in update of AIX-rpm. You can run /usr/sbin/updtvpkg to update AIX rpm virtual package.



  • 5.  Re: yum for AIX Toolbox

    Posted Fri October 19, 2018 08:39 AM

    Originally posted by: WolfgangT


    Hello,

    with the ./yum.sh

    I get

    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 ...
    glib2-2.14.6-2 will be installed ...
    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 ...
    Skipping readline-6.1-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.

    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:
            libtcl8.4.so is needed by python-2.7.10-1.ppc
            libtk8.4.so is needed by python-2.7.10-1.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-20181019134252 manually.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.

    I tried different versions of

    lslpp -L |grep tcl
      expect                    5.42.1-4    C     R    A tcl extension for
      tcl                        8.6.8-1    C     R    Tcl scripting

    and also I tried the manually installation.

    If I'll start yum.sh again, I get this Error

    Attempting download of rpm.rte & yum_bundle.tar ...
    ./yum.sh[57]: expect:  not found.
    Failed to download rpm.rte

    Do you have any ideas to fix all this?

    We have oslevel  7100-04-05-1720 installed

    Regards Wolfgang

     

     

     

     

     

     



  • 6.  Re: yum for AIX Toolbox

    Posted Wed October 12, 2016 11:41 AM

    Originally posted by: dieter_mosbach


    Thanks, tcl/tk was only installed as rpm.

    I installed also in installp format.

     

    Then  I installed :

    cd /mnt/linuxsw/aixtoolbox/yum_bundle_v1/
    rpm -Uvh python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    rpm -Uvh python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    rpm -Uvh python-iniparse-0.4-1.aix6.1.noarch.rpm
    rpm -Uvh pysqlite-1.1.7-1.aix6.1.ppc.rpm
    rpm -Uvh yum-3.4.3-1.aix6.1.noarch.rpm

    extra download:
    rpm -Uvh yum-3.4.3-3.aix6.1.noarch.rpm

     

    but something is missing:

     

    root@sps62001_adm:/mnt/linuxsw/aixtoolbox/yum_bundle_v1# yum
    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/libcurl.a(libcurl.so.4).
            0509-150   Dependent module /usr/lib/libcrypto.a(libcrypto.so.1.0.1) could not be loaded.
            0509-152   Member libcrypto.so.1.0.1 is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /usr/lib/libcurl.a(libcurl.so.4) 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]

     

    root@sps62001_adm:/mnt/linuxsw/aixtoolbox/yum_bundle_v1#  ar -vt /usr/lib/libcrypto.a
    rwxr-xr-x     0/0     2967588 Jul 24 15:46 2015 libcrypto.so
    rwxr-xr-x     0/0     2256131 Jul 24 15:43 2015 libcrypto.so.0.9.8
    rwxr-xr-x     0/0     2967588 Jul 24 15:45 2015 libcrypto.so.1.0.0

     

    root@sps62001_adm:/mnt/linuxsw/aixtoolbox/yum_bundle_v1# lslpp -w /usr/lib/libcrypto.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libcrypto.a                        openssl.base          File

     

    root@sps62001_adm:/mnt/linuxsw/aixtoolbox/yum_bundle_v1# lslpp -Lc openssl.base
    #Package Name:Fileset:Level:State:PTF Id:Fix State:Type:Description:Destination Dir.:Uninstaller:Message Catalog:Message Set:Message Number:Parent:Automatic:EFIX Locked:Install Path:Build Date
    openssl.base:openssl.base:1.0.1.515: : :C: :Open Secure Socket Layer: : : : : : :0:0:/:

     



  • 7.  Re: yum for AIX Toolbox

    Posted Wed October 12, 2016 09:53 PM

    Originally posted by: sanket


    Looks like you have some conflicts.

    Have you install AIX open source RPMs from some other sources than AIX toolbox http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

    Could you please remove the RPMs installed from other sources and just install the RPMs comes in yum_bundle_v1.

    openssl and libcrypto are part of AIX and they come in installp format please do not install them from any other sources then you will get conflict and same is true for curl.

    Could you please try a fresh setup where no RPM install then install everything from yum_bundle_v1 using "rpm -ivh *"

     

    Thanks

    Sanket



  • 8.  Re: yum for AIX Toolbox

    Posted Mon October 31, 2016 10:09 AM

    Originally posted by: RMC_team


    I had same problem. Issue is that you've probably updated curl to latest release.

     

    Issue happened when I ran:

    # yum update

    ---> Package curl.ppc 0:7.44.0-1 will be updated (this one is from yum_bundle)
    ---> Package curl.ppc 0:7.44.0-2 will be an update

     

    After removal of latest curl and installing back the old one everything works again.

     

     



  • 9.  Re: yum for AIX Toolbox

    Posted Thu October 13, 2016 06:29 AM

    Originally posted by: dieter_mosbach


    We are using rpm-packages from Mr. Perzl (http://www.perzl.org/aix/)

    on more then 100 LPARs for more than 10 years, because IBM was not able to provide basic open source software for AIX in current versions .

    Mr. Perzl wants his packages to be compatible with AIX toolbox. " They are intended to replace 100%-compatible the IBMTM AIX Toolbox for Linux Applications."

    Maybe you could contact him to find a solution for this conflict.

     



  • 10.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 12:23 PM

    Originally posted by: ckumar44


    Hi Guys,

    I am also facing a similar issue while configuring yum.

    I have downloaded yum.sh script and yum_bundle_v4.tar file from https://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/ site. I have modified the yum.sh file and replace yum_bundle for yum_bundle_v4 everywhere in the yum.sh script.

     

    # ./yum.sh
    Attempting download of rpm.rte & yum_bundle_v4.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.3        Already installed


    Extracting yum_bundle_v4.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_v4 are already installed ...

    Package ca-certificates-2016.10.7-2 is already installed
    Package curl-7.52.1-1 is already installed
    Package db-4.8.24-3 is already installed
    Package gdbm-1.8.3-5 is already installed
    Skipping gettext-0.19.7-1 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.

    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.

    Package pysqlite-1.1.7-2 is already installed
    Package python-2.7.10-1 is already installed
    Package python-devel-2.7.10-1 is already installed
    Package python-iniparse-0.4-1 is already installed
    Package python-pycurl-7.19.3-1 is already installed
    Package python-tools-2.7.10-1 is already installed
    Package python-urlgrabber-3.10.1-1 is already installed
    Package readline-6.1-2 is already installed
    Package sqlite-3.15.2-1 is already installed
    Package yum-3.4.3-5 is already installed
    Package yum-metadata-parser-1.1.4-2 is already installed

    ===========================================================================================

    All goes good, but facing issue here,

    # yum update
    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 /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
            0509-152   Member libiconv.so.2 is not found in archive
            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

    # oslevel -s
    7200-02-01-1732
    #

     

    # ar -vt /usr/lib/libiconv.a
    rwxr-x---   300/300   233944 Aug 10 23:12 2017 shr4.o
    rwxr-x---   300/300   234194 Aug 10 23:12 2017 shr.o
    # lslpp -w /usr/lib/libiconv.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libiconv.a                         bos.rte.iconv         File
     

    # lslpp -aL bos.rte.iconv
      Fileset                      Level  State  Type  Description (Uninstaller)
      ----------------------------------------------------------------------------
      bos.rte.iconv              7.2.2.0    C     F    Language Converters

     

    # lslpp -Lc bos.rte.iconv
    #Package Name:Fileset:Level:State:PTF Id:Fix State:Type:Description:Destination Dir.:Uninstaller:Message Catalog:Message Set:Message Number:Parent:Automatic:EFIX Locked:Install Path:Build Date
    bos:bos.rte.iconv:7.2.2.0: : :C: :Language Converters: : : : : : :1:0:/:

     

    Needed help urgently, Thanks in advance.

     

     



  • 11.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 01:35 PM

    Originally posted by: sangameshm


    Looks like you have glib2 rpm installed from some other source.

    You could see the same in yum.sh output 

    Skipping glib2-2.14.6-2 as higher version is already installed.

    Can you try installing the glib2 rpm which is part of the yum bundle and see how it goes ?

     

    Thanks,

    Sangamesh



  • 12.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 02:56 PM

    Originally posted by: ckumar44


    # rpm -ivh glib2-2.14.6-2.aix5.2.ppc.rpm --force
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:glib2-2.14.6-2                   ################################# [100%]

     

    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            0509-150   Dependent module libintl.a(libintl.so.8) could not be loaded.
            0509-022 Cannot load module libintl.a(libintl.so.8).
            0509-026 System error: A file or directory in the path name does not exist.
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            0509-150   Dependent module libintl.a(libintl.so.8) could not be loaded.
            0509-022 Cannot load module libintl.a(libintl.so.8).
            0509-026 System error: A file or directory in the path name does not exist.
    exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
            0509-150   Dependent module libintl.a(libintl.so.8) could not be loaded.
            0509-022 Cannot load module libintl.a(libintl.so.8).
            0509-026 System error: A file or directory in the path name does not exist.

     

    getting these error now.



  • 13.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 03:20 PM

    Originally posted by: ckumar44


    found the issue with rpm.rte after installing glib2 file

    removed the rpm.rte and installed again.

    +-----------------------------------------------------------------------------+
                                    Summaries:
    +-----------------------------------------------------------------------------+

    Installation Summary
    --------------------
    Name                        Level           Part        Event       Result
    -------------------------------------------------------------------------------
    rpm.rte                     4.13.0.3        USR         APPLY       SUCCESS
    rpm.rte                     4.13.0.3        ROOT        APPLY       SUCCESS
       

    # yum repolist
    AIX_Toolbox                                                                                                                         | 2.9 kB  00:00:00     
    AIX_Toolbox/primary_db                                                                                                              | 1.0 MB  00:00:01     
    AIX_Toolbox_72                                                                                                                      | 2.9 kB  00:00:00     
    AIX_Toolbox_72/primary_db                                                                                                           |  20 kB  00:00:00     
    AIX_Toolbox_noarch                                                                                                                  | 2.9 kB  00:00:00     
    AIX_Toolbox_noarch/primary_db                                                                                                       |  51 kB  00:00:00     
    repo id                                                               repo name                                                                      status
    AIX_Toolbox                                                           AIX generic repository                                                         1,654
    AIX_Toolbox_72                                                        AIX 7.2 specific repository                                                       38
    AIX_Toolbox_noarch                                                    AIX noarch repository                                                            105
    repolist: 1,797

     

    Thanks sangameshm, after you told to installed the ibm shipped glib2, it throws error, and found the problem with rpm.rte, after resinstalling the rpm.rte, the issue get fixed. Thanks again Bro.



  • 14.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 03:47 PM

    Originally posted by: ckumar44


    After testing for one package, it again starts give some other problem.

     

    # yum install vim
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package vim-enhanced.ppc 0:8.0-3 will be installed
    --> Processing Dependency: vim-common = 8.0-3 for package: vim-enhanced-8.0-3.ppc
    --> Processing Dependency: python >= 2.6.2 for package: vim-enhanced-8.0-3.ppc
    --> Processing Dependency: libpython2.7.a(libpython2.7.so) for package: vim-enhanced-8.0-3.ppc
    --> Processing Dependency: gettext for package: vim-enhanced-8.0-3.ppc
    --> Processing Dependency: libncurses.a(libncurses.so.6) for package: vim-enhanced-8.0-3.ppc
    --> Running transaction check
    ---> Package gettext.ppc 0:0.19.8.1-1 will be installed
    --> Processing Dependency: libglib-2.0.a(libglib-2.0.so.0) for package: gettext-0.19.8.1-1.ppc
    ---> Package ncurses.ppc 0:6.1-1 will be installed
    --> Processing Dependency: libstdc++.a(libstdc++.so.6) for package: ncurses-6.1-1.ppc
    ---> Package python.ppc 0:2.7.15-1 will be installed
    --> Processing Dependency: db >= 4.8 for package: python-2.7.15-1.ppc
    --> Processing Dependency: readline >= 5.2 for package: python-2.7.15-1.ppc
    --> Processing Dependency: sqlite >= 3 for package: python-2.7.15-1.ppc
    --> Processing Dependency: gcc >= 6.3.0 for package: python-2.7.15-1.ppc
    --> Processing Dependency: expat >= 2.0.0 for package: python-2.7.15-1.ppc
    --> Processing Dependency: gdbm for package: python-2.7.15-1.ppc
    --> Processing Dependency: libffi.a(libffi.so.6) for package: python-2.7.15-1.ppc
    --> Processing Dependency: zlib for package: python-2.7.15-1.ppc
    --> Processing Dependency: libexpat.a(libexpat.so.1) for package: python-2.7.15-1.ppc
    --> Processing Dependency: libgdbm.a(libgdbm.so.3) for package: python-2.7.15-1.ppc
    --> Processing Dependency: gmp for package: python-2.7.15-1.ppc
    --> Processing Dependency: libffi for package: python-2.7.15-1.ppc
    --> Processing Dependency: bzip2 for package: python-2.7.15-1.ppc
    ---> Package vim-common.ppc 0:8.0-3 will be installed
    --> Running transaction check
    ---> Package bzip2.ppc 0:1.0.6-2 will be installed
    ---> Package db.ppc 0:6.2.32-1 will be installed
    ---> Package expat.ppc 0:2.2.4-1 will be installed
    ---> Package gcc.ppc 0:8.1.0-1 will be installed
    --> Processing Dependency: libgcc = 8.1.0-1 for package: gcc-8.1.0-1.ppc
    --> Processing Dependency: gcc-cpp = 8.1.0-1 for package: gcc-8.1.0-1.ppc
    --> Processing Dependency: info for package: gcc-8.1.0-1.ppc
    ---> Package gdbm.ppc 0:1.12-1 will be installed
    ---> Package glib2.ppc 0:2.56.1-2 will be installed
    ---> Package gmp.ppc 0:6.1.2-1 will be installed
    ---> Package libffi.ppc 0:3.2.1-2 will be installed
    ---> Package libstdc++.ppc 0:8.1.0-1 will be installed
    ---> Package readline.ppc 0:7.0-5 will be installed
    ---> Package sqlite.ppc 0:3.23.0-1 will be installed
    ---> Package zlib.ppc 0:1.2.11-1 will be installed
    --> Running transaction check
    ---> Package gcc-cpp.ppc 0:8.1.0-1 will be installed
    --> Processing Dependency: libmpc >= 0.8.1 for package: gcc-cpp-8.1.0-1.ppc
    --> Processing Dependency: mpfr >= 2.4.2 for package: gcc-cpp-8.1.0-1.ppc
    --> Processing Dependency: libmpfr.a(libmpfr.so.4) for package: gcc-cpp-8.1.0-1.ppc
    --> Processing Dependency: libmpc.a(libmpc.so.3) for package: gcc-cpp-8.1.0-1.ppc
    ---> Package info.ppc 0:6.3-1 will be installed
    --> Processing Dependency: bash for package: info-6.3-1.ppc
    ---> Package libgcc.ppc 0:8.1.0-1 will be installed
    --> Running transaction check
    ---> Package bash.ppc 0:4.4-3 will be installed
    ---> Package libmpc.ppc 0:1.0.3-1 will be installed
    ---> Package mpfr.ppc 0:3.1.2-3 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    ===========================================================================================================================================================
     Package                                Arch                          Version                               Repository                                Size
    ===========================================================================================================================================================
    Installing:
     vim-enhanced                           ppc                           8.0-3                                 AIX_Toolbox                              1.1 M
    Installing for dependencies:
     bash                                   ppc                           4.4-3                                 AIX_Toolbox                              2.8 M
     bzip2                                  ppc                           1.0.6-2                               AIX_Toolbox                              146 k
     db                                     ppc                           6.2.32-1                              AIX_Toolbox                              6.9 M
     expat                                  ppc                           2.2.4-1                               AIX_Toolbox                              511 k
     gcc                                    ppc                           8.1.0-1                               AIX_Toolbox_72                            28 M
     gcc-cpp                                ppc                           8.1.0-1                               AIX_Toolbox_72                            10 M
     gdbm                                   ppc                           1.12-1                                AIX_Toolbox                              190 k
     gettext                                ppc                           0.19.8.1-1                            AIX_Toolbox                              9.3 M
     glib2                                  ppc                           2.56.1-2                              AIX_Toolbox                               28 M
     gmp                                    ppc                           6.1.2-1                               AIX_Toolbox                              1.6 M
     info                                   ppc                           6.3-1                                 AIX_Toolbox                              563 k
     libffi                                 ppc                           3.2.1-2                               AIX_Toolbox                               43 k
     libgcc                                 ppc                           8.1.0-1                               AIX_Toolbox_72                           976 k
     libmpc                                 ppc                           1.0.3-1                               AIX_Toolbox                              327 k
     libstdc++                              ppc                           8.1.0-1                               AIX_Toolbox_72                            12 M
     mpfr                                   ppc                           3.1.2-3                               AIX_Toolbox                              829 k
     ncurses                                ppc                           6.1-1                                 AIX_Toolbox                              1.9 M
     python                                 ppc                           2.7.15-1                              AIX_Toolbox                               22 M
     readline                               ppc                           7.0-5                                 AIX_Toolbox                              1.5 M
     sqlite                                 ppc                           3.23.0-1                              AIX_Toolbox                              3.6 M
     vim-common                             ppc                           8.0-3                                 AIX_Toolbox                              4.9 M
     zlib                                   ppc                           1.2.11-1                              AIX_Toolbox                              174 k

    Transaction Summary
    ===========================================================================================================================================================
    Install      23 Packages

    Total download size: 138 M
    Installed size: 508 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/23): bash-4.4-3.aix6.1.ppc.rpm                                                                                                   | 2.8 MB  00:00:03     
    (2/23): bzip2-1.0.6-2.aix6.1.ppc.rpm                                                                                                | 146 kB  00:00:00     
    (3/23): db-6.2.32-1.aix6.1.ppc.rpm                                                                                                  | 6.9 MB  00:00:04     
    (4/23): expat-2.2.4-1.aix6.1.ppc.rpm                                                                                                | 511 kB  00:00:00     
    (5/23): gcc-8.1.0-1.aix7.2.ppc.rpm                                                                                                  |  28 MB  00:00:18     
    (6/23): gcc-cpp-8.1.0-1.aix7.2.ppc.rpm                                                                                              |  10 MB  00:00:07     
    (7/23): gdbm-1.12-1.aix6.1.ppc.rpm                                                                                                  | 190 kB  00:00:00     
    (8/23): gettext-0.19.8.1-1.aix6.1.ppc.rpm                                                                                           | 9.3 MB  00:00:06     
    (9/23): glib2-2.56.1-2.aix6.1.ppc.rpm                                                                                               |  28 MB  00:00:20     
    (10/23): gmp-6.1.2-1.aix6.1.ppc.rpm                                                                                                 | 1.6 MB  00:00:01     
    (11/23): info-6.3-1.aix6.1.ppc.rpm                                                                                                  | 563 kB  00:00:00     
    (12/23): libffi-3.2.1-2.aix6.1.ppc.rpm                                                                                              |  43 kB  00:00:00     
    (13/23): libgcc-8.1.0-1.aix7.2.ppc.rpm                                                                                              | 976 kB  00:00:00     
    (14/23): libmpc-1.0.3-1.aix6.1.ppc.rpm                                                                                              | 327 kB  00:00:00     
    (15/23): libstdcplusplus-8.1.0-1.aix7.2.ppc.rpm                                                                                     |  12 MB  00:00:08     
    (16/23): mpfr-3.1.2-3.aix6.1.ppc.rpm                                                                                                | 829 kB  00:00:01     
    (17/23): ncurses-6.1-1.aix6.1.ppc.rpm                                                                                               | 1.9 MB  00:00:01     
    (18/23): python-2.7.15-1.aix6.1.ppc.rpm                                                                                             |  22 MB  00:00:14     
    (19/23): readline-7.0-5.aix6.1.ppc.rpm                                                                                              | 1.5 MB  00:00:01     
    (20/23): sqlite-3.23.0-1.aix6.1.ppc.rpm                                                                                             | 3.6 MB  00:00:02     
    (21/23): vim-common-8.0-3.aix6.1.ppc.rpm                                                                                            | 4.9 MB  00:00:03     
    (22/23): vim-enhanced-8.0-3.aix6.1.ppc.rpm                                                                                          | 1.1 MB  00:00:00     
    (23/23): zlib-1.2.11-1.aix6.1.ppc.rpm                                                                                               | 174 kB  00:00:00     
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                      1.3 MB/s | 138 MB     01:44     
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : libgcc-8.1.0-1.ppc                                                                                                                     1/23
      Installing : zlib-1.2.11-1.ppc                                                                                                                      2/23
      Installing : libstdc++-8.1.0-1.ppc                                                                                                                  3/23
      Installing : gmp-6.1.2-1.ppc                                                                                                                        4/23
      Installing : ncurses-6.1-1.ppc                                                                                                                      5/23
      Installing : mpfr-3.1.2-3.ppc                                                                                                                       6/23
      Installing : libffi-3.2.1-2.ppc                                                                                                                     7/23
      Installing : gettext-0.19.8.1-1.ppc                                                                                                                 8/23
      Installing : glib2-2.56.1-2.ppc                                                                                                                     9/23
      Installing : gdbm-1.12-1.ppc                                                                                                                       10/23
      Installing : libmpc-1.0.3-1.ppc                                                                                                                    11/23
      Installing : db-6.2.32-1.ppc                                                                                                                       12/23
      Installing : bash-4.4-3.ppc                                                                                                                        13/23

        ## Binary "bash" is avaible in 32bit and 64bit ##

        The default used is 64bit

        If 32bit is needed, please change symbolic link
        for "bash" in /bin directory
        To do that type:
            # rm -f /bin/bash
            # ln -sf /opt/freeware/bin/bash_32 /bin/bash
      Installing : info-6.3-1.ppc                                                                                                                        14/23
    warning: /opt/freeware/info/dir created as /opt/freeware/info/dir.rpmnew
    Please check that /etc/info-dir does exist.
    You might have to rename it from /etc/info-dir.rpmsave to /etc/info-dir.
      Installing : readline-7.0-5.ppc                                                                                                                    15/23
      Installing : gcc-8.1.0-1.ppc                                                                                                                       16/23
      Installing : gcc-cpp-8.1.0-1.ppc                                                                                                                   17/23
      Installing : sqlite-3.23.0-1.ppc                                                                                                                   18/23
      Installing : bzip2-1.0.6-2.ppc                                                                                                                     19/23
      Installing : vim-common-8.0-3.ppc                                                                                                                  20/23
      Installing : expat-2.2.4-1.ppc                                                                                                                     21/23
      Installing : python-2.7.15-1.ppc                                                                                                                   22/23
      Installing : vim-enhanced-8.0-3.ppc                                                                                                                23/23

    Installed:
      vim-enhanced.ppc 0:8.0-3                                                                                                                                 

    Dependency Installed:
      bash.ppc 0:4.4-3        bzip2.ppc 0:1.0.6-2         db.ppc 0:6.2.32-1          expat.ppc 0:2.2.4-1    gcc.ppc 0:8.1.0-1      gcc-cpp.ppc 0:8.1.0-1   
      gdbm.ppc 0:1.12-1       gettext.ppc 0:0.19.8.1-1    glib2.ppc 0:2.56.1-2       gmp.ppc 0:6.1.2-1      info.ppc 0:6.3-1       libffi.ppc 0:3.2.1-2    
      libgcc.ppc 0:8.1.0-1    libmpc.ppc 0:1.0.3-1        libstdc++.ppc 0:8.1.0-1    mpfr.ppc 0:3.1.2-3     ncurses.ppc 0:6.1-1    python.ppc 0:2.7.15-1   
      readline.ppc 0:7.0-5    sqlite.ppc 0:3.23.0-1       vim-common.ppc 0:8.0-3     zlib.ppc 0:1.2.11-1   

    Complete!

    =====================================================================================================================================================

    # python -V
    Python 2.7.15

    ========================
    # yum list
    ERROR:root:code for hash md5 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type md5
    ERROR:root:code for hash sha1 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha1
    ERROR:root:code for hash sha224 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha224
    ERROR:root:code for hash sha256 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha256
    ERROR:root:code for hash sha384 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha384
    ERROR:root:code for hash sha512 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha512
    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 /opt/freeware/lib/python2.7/site-packages/pycurl.so.
        0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
        0509-152   Member libcrypto.so is not found in archive
        0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
        0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so 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.15 (default, Jul 27 2018, 03:37:11)
    [GCC 6.3.0]

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

     

     

    # yum
    ERROR:root:code for hash md5 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type md5
    ERROR:root:code for hash sha1 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha1
    ERROR:root:code for hash sha224 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha224
    ERROR:root:code for hash sha256 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha256
    ERROR:root:code for hash sha384 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha384
    ERROR:root:code for hash sha512 was not found.
    Traceback (most recent call last):
      File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
        globals()[__func_name] = __get_hash(__func_name)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
        raise ValueError('unsupported hash type ' + name)
    ValueError: unsupported hash type sha512
    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 /opt/freeware/lib/python2.7/site-packages/pycurl.so.
        0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.
        0509-152   Member libcrypto.so is not found in archive
        0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
        0509-150   Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.

     

     

    did python update did some issue, because earlier python version was 2.7.10, its now become 2.7.15.. ?

     

     



  • 15.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 04:35 PM

    Originally posted by: ckumar44


    Seems like , yum update installs the new package for python and remove all the rpm's in bundle

     

    -rwxrwxr-x    1 so       staff       4036762 Feb 24 2017  gettext-0.19.7-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff         56991 Feb 24 2017  gdbm-1.8.3-5.aix5.2.ppc.rpm
    -rwxrwxr-x    1 so       staff       2897799 Feb 24 2017  db-4.8.24-3.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff        533288 Feb 24 2017  curl-7.52.1-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff         51749 Feb 24 2017  pysqlite-1.1.7-2.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff       1686134 Feb 24 2017  glib2-2.14.6-2.aix5.2.ppc.rpm
    -rwxrwxr-x    1 so       staff       3570302 Feb 24 2017  sqlite-3.15.2-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff        489547 Feb 24 2017  readline-6.1-2.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff        158584 Feb 24 2017  python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    -rwxrwxr-x    1 so       staff        830446 Feb 24 2017  python-tools-2.7.10-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff        162093 Feb 24 2017  python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff         37912 Feb 24 2017  python-iniparse-0.4-1.aix6.1.noarch.rpm
    -rwxrwxr-x    1 so       staff      15366474 Feb 24 2017  python-devel-2.7.10-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff      23333701 Feb 24 2017  python-2.7.10-1.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff         62283 Feb 24 2017  yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
    -rwxrwxr-x    1 so       staff        214726 May 12 2017  ca-certificates-2016.10.7-2.aix6.1.ppc.rpm
    -rwxrwxr-x    1 root     system      1380725 Aug 03 2017  yum-3.4.3-5.aix6.1.noarch.rpm
    -rwxrwxr-x    1 root     system     49710080 Aug 21 17:14 rpm.rte
    -rwxrwxr-x    1 root     system     54886400 Aug 21 17:15 yum_bundle_v4.tar

     

    I have installed all these packages again with --force option, which removes the newer version and installed the packages in bundle.

     

    # for i in `ls -ltr|awk '{print $9}'`;do rpm -Uvh $i --force;done
    Preparing...                          ################################# [100%]
    /
    Updating / installing...
       1:gettext-0.19.7-1                 ################################# [ 50%]
    add libintl.so.1 (32bits) shared member to /opt/freeware/lib/libintl.a
    add libintl.so.1 (64bits) shared member to  /opt/freeware/lib/libintl.a
    /
    Cleaning up / removing...
       2:gettext-0.19.8.1-1               ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:gdbm-1.8.3-5                     ################################# [ 50%]
    Cleaning up / removing...
       2:gdbm-1.12-1                      ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:db-4.8.24-3                      ################################# [ 50%]
    Cleaning up / removing...
       2:db-6.2.32-1                      ################################# [100%]
    error: Failed dependencies:
        ca-certificates >= 2016.10.7 is needed by curl-7.52.1-1.ppc
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:pysqlite-1.1.7-2                 ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:glib2-2.14.6-2                   ################################# [ 50%]
    Cleaning up / removing...
       2:glib2-2.56.1-2                   ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:sqlite-3.15.2-1                  ################################# [ 50%]
    Cleaning up / removing...
       2:sqlite-3.23.0-1                  ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:readline-6.1-2                   ################################# [ 50%]
    Cleaning up / removing...
       2:readline-7.0-5                   ################################# [100%]
    error: Failed dependencies:
        python-pycurl >= 7.19.3 is needed by python-urlgrabber-3.10.1-1.noarch
    error: Failed dependencies:
        python = 2.7.10 is needed by python-tools-2.7.10-1.ppc
    error: Failed dependencies:
        curl >= 7.44.0 is needed by python-pycurl-7.19.3-1.ppc
        libcurl.a(libcurl.so.4) is needed by python-pycurl-7.19.3-1.ppc
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python-iniparse-0.4-1            ################################# [100%]
    error: Failed dependencies:
        python = 2.7.10 is needed by python-devel-2.7.10-1.ppc
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python-2.7.10-1                  ################################# [ 50%]
    Cleaning up / removing...
       2:python-2.7.15-1                  ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:yum-metadata-parser-1.1.4-2      ################################# [100%]
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:ca-certificates-2016.10.7-2      ################################# [100%]
    error: Failed dependencies:
        urlgrabber >= 3.9.2 is needed by yum-3.4.3-5.noarch
    error: rpm.rte: not an rpm package (or package manifest):

     

    # rpm -Uvh curl-7.52.1-1.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:curl-7.52.1-1                    ################################# [100%]
    # rpm -Uvh python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python-pycurl-7.19.3-1           ################################# [100%]
    # rpm -Uvh python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:python-urlgrabber-3.10.1-1       ################################# [100%]

     

    Now its starts working fine , I am not sure , after yum update it will work or no..

     

     



  • 16.  Re: yum for AIX Toolbox

    Posted Tue August 21, 2018 04:38 PM

    Originally posted by: ckumar44


    # yum check-update

    ca-certificates.ppc                                                        2017.07.17-1                                                         AIX_Toolbox
    curl.ppc                                                                   7.60.0-1                                                             AIX_Toolbox
    db.ppc                                                                     6.2.32-1                                                             AIX_Toolbox
    gdbm.ppc                                                                   1.12-1                                                               AIX_Toolbox
    gettext.ppc                                                                0.19.8.1-1                                                           AIX_Toolbox
    glib2.ppc                                                                  2.56.1-2                                                             AIX_Toolbox
    pysqlite.ppc                                                               2.8.3-1                                                              AIX_Toolbox
    python.ppc                                                                 2.7.15-1                                                             AIX_Toolbox
    python-pycurl.ppc                                                          7.43.0-1                                                             AIX_Toolbox
    readline.ppc                                                               7.0-5                                                                AIX_Toolbox
    sqlite.ppc                                                                 3.23.0-1                                                             AIX_Toolbox
    #

     



  • 17.  Re: yum for AIX Toolbox

    Posted Wed August 22, 2018 12:25 AM

    Originally posted by: sangameshm


    This error is because of openssl rpm package. We build our rpm package with openssl lpp package provided by AIX.

    You need to remove the openssl rpm and install the openssl filesets from https://www-01.ibm.com/marketing/iwm/iwm/web/reg/pick.do?source=aixbp&lang=en_US

    Once after installation of openssl fileset run the "updtvpkg" command and then try the yum update.

     

    You might want to look into this forum discussion https://www.ibm.com/developerworks/community/forums/html/topic?id=b534f25e-9054-4b3f-8f3e-a966fb3257de&ps=25

    And also open source related questions should go to separate AIX open source forum https://www.ibm.com/developerworks/community/forums/html/forum?id=2eb0f36d-9534-471b-8b27-c21e6c5b9b2b&ps=25

     

    Thanks,

    Sangamesh

     



  • 18.  Re: yum for AIX Toolbox

    Posted Fri October 28, 2016 10:23 AM

    Originally posted by: s859ky


    I have installed these PHP packages successfully on AIX with "yum install": php.ppc, php-cli.ppc, php-common.ppc, and php-devel.ppc

    I would like to be able to use the PHP SoapClient as described at http://php.net/manual/en/intro.soap.php

    On Ubuntu Linux I install this support by issuing command "apt-get install php7.0-soap"

    Is there a way to install this support in AIX using the pre-built PHP packages, or does PHP need to be built from scratch?

    Steve Zwart



  • 19.  Re: yum for AIX Toolbox

    Posted Thu December 01, 2016 12:30 PM

    Originally posted by: sangameshm


    Hi Steve,

    Newly uploaded php-7.0.13 has the soap supported added.
    This support is included as part of php-7.0.13-1 itself.

    Thanks,
    Sangamesh



  • 20.  Re: yum for AIX Toolbox

    Posted Thu December 08, 2016 02:49 PM

    Originally posted by: s859ky


    Thank you very much, Sangamesh.

    I can see the support with "php --modules" and can create a new SoapClient object.

    However, I cannot access our sites by SOAP because they are https://xxxxx    The AIX php build doesn't include openssl.
     

    On ubuntu:

    # php -i|grep -i openssl
    SSL Version => OpenSSL/1.0.2g
    openssl
    OpenSSL support => enabled
    OpenSSL Library Version => OpenSSL 1.0.2g  1 Mar 2016
    OpenSSL Header Version => OpenSSL 1.0.2g  1 Mar 2016
    Openssl default config => /usr/lib/ssl/openssl.cnf
    openssl.cafile => no value => no value
    openssl.capath => no value => no value
    Native OpenSSL support => enabled

    On AIX:

    # php -i| grep -i openssl
    OpenSSL support => disabled (install ext/openssl)

     

    Can you please build it with SSL support or suggest how I can add it on my AIX system?

    That would be appreciated.

     

    Regards and thanks,

    Steve



  • 21.  Re: yum for AIX Toolbox

    Posted Fri December 09, 2016 04:53 AM

    Originally posted by: sangameshm


    Hi Steve,

     

    Okay. We will build php with SSL support and let you know once it's available.

     

    Thanks,

    Sangamesh



  • 22.  Re: yum for AIX Toolbox

    Posted Wed December 28, 2016 07:36 PM

    Originally posted by: s859ky


    Hi Sangamesh -
        I was able to build PHP 7.1 on AIX with cURL, SOAP, and OpenSSL support. I'm using it as a client only, not a server:
       
    oslevel -s
    7100-04-02-1614
     
    Steps:
     
    1. Installed libxml2, curl-devel, and openldap-devel with yum from the AIX Toolbox.
     
    2. Downloaded php 7.1.0 (Dec 1 2016)
      Configure script:
        #!/bin/ksh
        umask 022
        export PATH=/opt/freeware/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java6/jre/bin:/usr/java6/bin:/usr/local/bin:
        ./configure --enable-soap --with-openssl --with-curl --without-iconv --prefix=/opt/freeware --includedir=/opt/freeware --libdir=/opt/freeware
     
    3.  With same PATH, run make, make test, and make install.  A couple of the 11,000 make tests appeared to loop, but otherwise clean.
     
    4. To make SSL communications work:
        Find out where openssl keeps config files:
      openssl version -d
      OPENSSLDIR: "/var/ssl"
     
      Obtain a cacert.pem from the cURL support site.
      Put the file in /var/ssl and make it world readable.
     
    5. Update /opt/freeware/php.ini to use the certificate bundle in these two lines for SoapClient and REST:
     
      grep cacert.pem php.ini
      curl.cainfo=/var/ssl/cacert.pem
      openssl.cafile=/var/ssl/cacert.pem
     
    6. In a PHP script, a SoapClient works without any SSL adjustments:   "$client = new SoapClient('https://xxxxxxxxx");
     
    7. In a PHP script,  a REST GET works fine as well without any SSL adjustments:       curl_init($service_url);"
     
    I am hoping this is helpful if you are continuing to build PHP 7.1 in the toolbox.
     
    Steve


  • 23.  Re: yum for AIX Toolbox

    Posted Wed January 04, 2017 07:05 AM

    Originally posted by: guru111


    Hello All,

     

    We are facing issue to install yum on AIX 6.1 server.We have downloaded the yum bundle and tried to install but it gives dependencies errors.

    anyone have any idea,how to fix the dependencies issue instead of individual installation.

    Actually I need to install svn client in aix 6.1 but for svn client we are getting more dependencies errors ,so we choose the yum installation first and then we can install svn.

    Please help me to fix the yum installation or svn client installation in aix 6.1 server.

    error: failed dependencies:
            libcrypto.a(libcrypto.so) is needed by curl-7.44.0-1
            libssl.a(libssl.so) is needed by curl-7.44.0-1
            libcrypto.a(libcrypto.so) is needed by python-2.7.10-1
            libssl.a(libssl.so) is needed by python-2.7.10-1
            libtcl8.4.so is needed by python-2.7.10-1
            libtk8.4.so is needed by python-2.7.10-1
            libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1
            popt <= 1.16 is needed by rpm-4.9.1.3-3
            file-libs <= 5.12 is needed by rpm-4.9.1.3-3
            nss <= 3.14.3 is needed by rpm-4.9.1.3-3
            nspr <= 4.9.5 is needed by rpm-4.9.1.3-3
            lua <= 5.1.5 is needed by rpm-4.9.1.3-3
            liblua.a(liblua-5.1.so) is needed by rpm-4.9.1.3-3
            libmagic.a(libmagic.so.1) is needed by rpm-4.9.1.3-3

     



  • 24.  Re: yum for AIX Toolbox

    Posted Wed January 04, 2017 02:07 PM

    Originally posted by: sangameshm


    Hi,

     

    The proper way to install YUM on AIX is to install the rpm.rte installp first and then install the rpms from yum tar.

    You can check more details on README file here https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/README-yum

    rpm (rpm) package do have some dependencies which we need to install manually.

    Please run "updtvpkg"  which will solve the errors related to ssl & tcl/tk.

    To solve the remaining errors individual packages needs to be installed.

     

    Thanks,

    Sangamesh



  • 25.  Re: yum for AIX Toolbox

    Posted Sun January 08, 2017 01:29 AM

    Originally posted by: sanket


    libssl, libcrypto, tcl/tk all are provided by AIX in native install format.

    Please install them if they are not already there. You can verify with
    lslpp -l | grep tcl
    and
    rpm -q AIX-rpm --provides | grep tcl

    rpm -q AIX-rpm --provides | grep ssl

    If it is installed but not showing in AIX-rpm then there is issue in update of AIX-rpm. You can run /usr/sbin/updtvpkg to update AIX rpm virtual package.

    Also make sure you don't install these packages (ssl, tcl/tk) from any other source that can cause conflict because packages in yum tar are built with the official AIX pakcages.

     

     

    Thanks

    Sanket



  • 26.  Re: yum for AIX Toolbox

    Posted Tue January 10, 2017 03:19 PM

    Originally posted by: Dave_Nowalis


    I have been testing this on AIX 7200-01-01-1642.  I found that if rpm.rte.4.9.1.3 is installed by itself the AIX-rpm virtual package does not get configured.  I installed the rpm.rte.3.0.5.53 then updated to rpm.rte.4.9.1.3 and all my weird dependency issues and missing libraries went away and all the other yum_bundle_v1 rpm's installed correctly.
     



  • 27.  Re: yum for AIX Toolbox

    Posted Wed January 04, 2017 02:04 PM

    Originally posted by: sangameshm


    Hi Steve,

     

    Thanks a lot for  the info, it will help.

    We are also in process to ship ssl certificates in a separate rpm package for packages like curl, wget etc..

     

    Thanks,

    Sangamesh



  • 28.  Re: yum for AIX Toolbox

    Posted Fri June 09, 2017 03:38 PM

    Originally posted by: akshay0382


    Hi Sangamesh ,

     

    Any update about php rpm with openssl support enabled ?

    php -i | grep ssl
    OpenSSL support => disabled (install ext/openssl)

     

    Akshay



  • 29.  Re: yum for AIX Toolbox

    Posted Fri July 28, 2017 11:57 AM

    Originally posted by: rayye2017


    Hi Sangamesh,

     

    Is openssl now supported for PHP?  Please confirm.

    Thanks!

    Ray



  • 30.  Re: yum for AIX Toolbox

    Posted Thu November 10, 2016 02:50 PM

    Originally posted by: TommiSihvo


    Hi,

     

    Created local repo from AIX Toolbox, and tried to install cloud-init via that; but seems that it has some missing requirements on some python-packages.

    Any plans to fix those..or are those fixed already e.g in Mr. Perlz's repo..?

     

    yum install cloud-init

    Setting up Install Process

    Resolving Dependencies

    --> Running transaction check

    ---> Package cloud-init.ppc 0:0.7.5-4.1 will be installed

    --> Processing Dependency: python-boto >= 2.7 for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-prettytable for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-oauth for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-yaml for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-six for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-cheetah for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-PyYAML for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-pyserial for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-requests for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-argparse for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-jsonpatch for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-xml for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-setuptools for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-configobj for package: cloud-init-0.7.5-4.1.ppc

    --> Running transaction check

    ---> Package cloud-init.ppc 0:0.7.5-4.1 will be installed

    --> Processing Dependency: python-boto >= 2.7 for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-prettytable for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-oauth for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-six for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-requests for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-argparse for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-jsonpatch for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-setuptools for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-configobj for package: cloud-init-0.7.5-4.1.ppc

    ---> Package python-PyYAML.ppc 0:3.11-1 will be installed

    --> Processing Dependency: libyaml >= 0.1.4 for package: python-PyYAML-3.11-1.ppc

    --> Processing Dependency: libyaml.a(libyaml-0.so.2) for package: python-PyYAML-3.11-1.ppc

    ---> Package python-cheetah.ppc 0:2.4.4-2 will be installed

    ---> Package python-pyserial.ppc 0:2.7-1 will be installed

    ---> Package python-xml.ppc 0:0.8.4-1 will be installed

    --> Running transaction check

    ---> Package cloud-init.ppc 0:0.7.5-4.1 will be installed

    --> Processing Dependency: python-boto >= 2.7 for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-prettytable for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-oauth for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-six for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-requests for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-argparse for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-jsonpatch for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-setuptools for package: cloud-init-0.7.5-4.1.ppc

    --> Processing Dependency: python-configobj for package: cloud-init-0.7.5-4.1.ppc

    ---> Package libyaml.ppc 0:0.1.4-2 will be installed

    --> Finished Dependency Resolution

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-six

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-boto >= 2.7

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-argparse

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-configobj

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-setuptools

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-jsonpatch

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-oauth

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-prettytable

    Error: Package: cloud-init-0.7.5-4.1.ppc (AIX_Toolbox)

               Requires: python-requests

     You could try using --skip-broken to work around the problem

    ** Found 10 pre-existing rpmdb problem(s), 'yum check' output follows:

    AIX-rpm-7.2.0.0-4.ppc has missing requires of rpm

    AIX-rpm-7.2.0.0-4.ppc has missing requires of bzip2

    AIX-rpm-7.2.0.0-4.ppc has missing requires of gzip

    AIX-rpm-7.2.0.0-4.ppc has missing requires of info

    AIX-rpm-7.2.0.0-4.ppc has missing requires of patch

    AIX-rpm-7.2.0.0-4.ppc has missing requires of popt

    AIX-rpm-7.2.0.0-4.ppc has missing requires of file

    AIX-rpm-7.2.0.0-4.ppc has missing requires of file-libs

    AIX-rpm-7.2.0.0-4.ppc has missing requires of nspr

    AIX-rpm-7.2.0.0-4.ppc has missing requires of nss

     


  • 31.  Re: yum for AIX Toolbox

    Posted Mon November 14, 2016 08:20 PM

    Originally posted by: sanket


    Hi,

    Did you download all the packages from AIX toolbox and then built you repository ?

    Because all the dependent packages are available on AIX toolbox.

    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/python/



  • 32.  Re: yum for AIX Toolbox

    Posted Tue November 15, 2016 12:33 AM

    Originally posted by: TommiSihvo


    Thanks Sanket;

     

    I used the wget command from chmod666's instructions:

    http://chmod666.org/index.php/enhance-your-aix-packages-management-with-yum-and-nim-over-http/

    wget -r 
    ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
    

    So that seems to leave out noarch dir ...would you have some good wget command that would take all needed files?

     



  • 33.  Re: yum for AIX Toolbox

    Posted Tue November 15, 2016 03:40 AM

    Originally posted by: sanket


    Since that post there were some changes in the AIX toolbox and we have placed RPMs in different directories for better management and for YUM to work for every AIX version.

     

    Please use wget -r https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/
    This should get you all needed RPMs and repodata.


    You should have three repository in your yum.conf
    1. For noarch (RPMs those are not architecture specific)
    2. For ppc (RPMs compiled for ppc but not AIX version specific)
    3. ppc-6.1/ppc-7.1/ppc-7.2 (Depends on your AIX verison)

     

    By the way we have also ported createrepo command for AIX and that is also available on AIX toolbox.

     

    Thanks
    Sanket

     



  • 34.  Re: yum for AIX Toolbox

    Posted Tue November 15, 2016 03:52 AM

    Originally posted by: TommiSihvo


    Will use that  & update my repo right now; Thanks Sanket!



  • 35.  Re: yum for AIX Toolbox

    Posted Wed March 08, 2017 03:06 AM

    Originally posted by: Morten_Torstensen


    Can you also port "reposync" so we can get a cleaner mirroring method compared to "wget"? With wget we have to transfer all the files every time there is an update and reposync can mirror the IBM repository on public.dhe.ibm.com better than wget.



  • 36.  Re: yum for AIX Toolbox

    Posted Wed March 08, 2017 06:33 AM

    Originally posted by: sanket


    We are working on porting yum-utils for AIX and reposync will be part of yum-utils.

     

    Thanks

    Sanket



  • 37.  Re: yum for AIX Toolbox

    Posted Thu December 08, 2016 02:37 PM

    Originally posted by: kharel


    Its great to be able to get yum  on AIX finally! But its already giving me heartache.

     

    After today's VUG session, I was able to get it installed. But after one round of successful yum update I ran into this. I can no longer execute any yum commands because of these library/module issue. I have put the error below. Can someone please assist?

     

    # yum update
    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/libcurl.a(libcurl.so.4).
            0509-150   Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
            0509-153   File /usr/lib/libldap.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /usr/lib/libcurl.a(libcurl.so.4) 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


     # oslevel -s
    7100-04-02-1614

     



  • 38.  Re: yum for AIX Toolbox

    Posted Fri December 09, 2016 04:52 AM

    Originally posted by: sangameshm


    Hi Kharel,

     

    Good to hear that you are able to install YUM.

    I think  your openldap libraries have changed after it's installation.

    First curl will look for libldap.a in /opt/freeware/lib path, but i think somehow /opt/freeware/lib/libldap.a might have been removed and  /usr/lib/libldap.a isn't a proper archive file.

    Please manually reinstall the openldap-2.4.40-1(https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/openldap/openldap-2.4.40-1.aix6.1.ppc.rpm ) and then retry the yum update.

     

    Thanks,

    Sangamesh

     



  • 39.  Re: yum for AIX Toolbox

    Posted Fri December 09, 2016 09:13 AM

    Originally posted by: kharel


    Thank you for quick response. I force reinstalled the rpm

    # rpm -ivh /tmp/openldap-2.4.40-1.aix6.1.ppc.rpm --force

     

    xtnim001:/ # rpm -q openldap --last
    1481292451                                    openldap-2.4.40-1 Fri Dec  9 08:07:31 CST 2016

     

    Then I realized that my other tools like wget and sudo are also broken now. Just so you know I had some of the RPMs installed from perzl.org before I installed packages related to yum yesterday.


    xtnim001:/ # yum
    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/libcurl.a(libcurl.so.4).
            0509-150   Dependent module /usr/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
            0509-153   File /usr/lib/libldap.a is not an archive or
                       the file could not be read properly.
            0509-026 System error: Cannot run a file that does not have a valid format.
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
            0509-150   Dependent module /usr/lib/libcurl.a(libcurl.so.4) 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


    xtnim001:/ # wget
    exec(): 0509-036 Cannot load program wget because of the following errors:
            0509-130 Symbol resolution failed for /usr/lib/libssl.a(libssl.so) because:
            0509-136   Symbol EVP_aes_256_gcm (number 191) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol EVP_aes_128_gcm (number 194) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol EVP_aes_256_cbc_hmac_sha1 (number 249) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol EVP_aes_128_cbc_hmac_sha1 (number 250) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Verify_B_mod_N (number 331) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Calc_client_key (number 332) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Calc_A (number 333) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Calc_x (number 334) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Calc_u (number 335) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Verify_A_mod_N (number 336) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Calc_B (number 337) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_Calc_server_key (number 338) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_get_default_gN (number 339) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_check_known_gN_param (number 340) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-136   Symbol SRP_create_verifier_BN (number 341) is not exported from
                       dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.0.0).
            0509-026 System error: Error 0
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.



  • 40.  Re: yum for AIX Toolbox

    Posted Tue December 13, 2016 03:52 AM

    Originally posted by: sangameshm


    Hi Kharel,

     

    Sorry for delay, i didn't notice this post.

    For yum to work properly all dependencies should be from the AIX Toolbox.

    Please can you verify that curl & wget are from AIX Toolbox www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html

    Also libcrypto & libssl are part of AIX and they will be installed by default. curl & wget uses the AIX openssl libraries instead of an any separate RPM packages.

    We might see the conflict if we try to mix the packages from different source

     

    Thanks,

    Sangamesh



  • 41.  Re: yum for AIX Toolbox

    Posted Tue December 13, 2016 10:07 AM

    Originally posted by: kharel


    So as per your instructions, I removed and reinstalled rpms again. I was able to get yum working again. Once working, I ran yum update and only package available for update was curl. On updating yum broke again and displayed same behaviour as earlier. I was able to fix it and reproduce the issue. I think there is issue with "7.51.0-1" versions of curl. Your thoughts?



  • 42.  Re: yum for AIX Toolbox

    Posted Wed December 14, 2016 01:40 PM

    Originally posted by: sangameshm


    curl-7.51.0-1 has a added dependency on openldap (libldap.a) which wasn't case in earlier version.

    Looks like you have /usr/lib/libldap.a installed by some other source, could be AIX ldap installp fileset which is conflicting with curl package.

    As an workaround set the LIBPATH as /opt/freeware/lib:/usr/lib:/lib.

    We will see if we need to rebuild the curl to correct the YUM error if we have libldap.a from some other source.

     

    Thanks,

    Sangamesh

     



  • 43.  Re: yum for AIX Toolbox

    Posted Tue March 07, 2017 06:55 AM

    Originally posted by: Morten_Torstensen


    We had yum installed for a short while, but some update on the repository breaks for us.

     

    Now a "yum update" shows this error:

    Resolving Dependencies
    --> Running transaction check
    ---> Package curl.ppc 0:7.51.0-1 will be updated
    ---> Package curl.ppc 0:7.52.1-1 will be an update
    --> Processing Dependency: ca-certificates >= 2016.10.7 for package: curl-7.52.1-1.ppc
    ---> Package gcc.ppc 0:4.8.5-1 will be updated
    ---> Package gcc.ppc 0:4.8.5-1_72 will be an update
    ---> Package gcc-cpp.ppc 0:4.8.5-1 will be updated
    ---> Package gcc-cpp.ppc 0:4.8.5-1_72 will be an update
    ---> Package libffi.ppc 0:3.2.1-1 will be updated
    --> Processing Dependency: libffi.a(libffi.so.6) for package: glib2-2.48.0-1.ppc
    --> Processing Dependency: libffi.a(libffi.so.6) for package: python-2.7.12-2.ppc
    ---> Package libffi.ppc 0:4.2.0-3 will be an update
    ---> Package libgcc.ppc 0:4.8.5-1 will be updated
    ---> Package libgcc.ppc 0:4.8.5-1_72 will be an update
    ---> Package libstdc++.ppc 0:4.8.5-1 will be updated
    ---> Package libstdc++.ppc 0:4.8.5-1_72 will be an update
    ---> Package python.ppc 0:2.7.12-1 will be updated
    ---> Package python.ppc 0:2.7.12-2 will be an update
    ---> Package python-devel.ppc 0:2.7.12-1 will be updated
    ---> Package python-devel.ppc 0:2.7.12-2 will be an update
    ---> Package python-tools.ppc 0:2.7.12-1 will be updated
    ---> Package python-tools.ppc 0:2.7.12-2 will be an update
    ---> Package sudo.ppc 0:1.8.15-2 will be updated
    ---> Package sudo.ppc 2008050201:1.8.15-1noldap will be an update
    ---> Package yum.noarch 0:3.4.3-3 will be updated
    ---> Package yum.noarch 0:3.4.3-4 will be an update
    --> Running transaction check
    ---> Package ca-certificates.ppc 0:2016.10.7-1 will be installed
    ---> Package libffi.ppc 0:3.2.1-1 will be updated
    --> Processing Dependency: libffi.a(libffi.so.6) for package: glib2-2.48.0-1.ppc
    --> Processing Dependency: libffi.a(libffi.so.6) for package: python-2.7.12-2.ppc
    --> Finished Dependency Resolution
    Error: Package: glib2-2.48.0-1.ppc (@AIX_Toolbox)
               Requires: libffi.a(libffi.so.6)
               Removing: libffi-3.2.1-1.ppc (installed)
                   libffi.a(libffi.so.6)
               Updated By: libffi-4.2.0-3.ppc (AIX_Toolbox)
                   Not found
               Available: libffi-3.0.12-1.ppc (AIX_Toolbox)
                   libffi.a(libffi.so.6)
    Error: Package: python-2.7.12-2.ppc (AIX_Toolbox)
               Requires: libffi.a(libffi.so.6)
               Removing: libffi-3.2.1-1.ppc (installed)
                   libffi.a(libffi.so.6)
               Updated By: libffi-4.2.0-3.ppc (AIX_Toolbox)
                   Not found
               Available: libffi-3.0.12-1.ppc (AIX_Toolbox)
                   libffi.a(libffi.so.6)
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    

    If I delete "libffi-4.2.0-3.pcc" RPM files it all works fine. I notice that this updated libffi is not propagated into the ppc-61 (and other AIX version specific folders).

    Does anyone else see this? Why this error?

    Note that we copy the RPMs from IBMs internet side to an internal server with "wget -r ...".

    PS. This file is also broken on the IBM site: Worker 0: Error: Could not open local rpm file: ppc/gzip/gzip-1.6-1.aix6.1.ppc.rpm: RPM Error opening Package (from ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS)

     



  • 44.  Re: yum for AIX Toolbox

    Posted Wed March 08, 2017 06:33 AM

    Originally posted by: sanket


    Yes.. looks like gzip1.6-1 is broken. We will fix/remove that from the toolbox.

    But the latest gzip1.6-2 is working and latest.

     

    Thanks

    Sanket



  • 45.  Re: yum for AIX Toolbox

    Posted Wed March 08, 2017 06:37 AM

    Originally posted by: Morten_Torstensen


    And will you also remove the gcc directory in the ppc directory, as that should come from ppc-6.1/7.1/7.2 directories?



  • 46.  Re: yum for AIX Toolbox

    Posted Wed March 08, 2017 08:21 AM

    Originally posted by: sangameshm


    Hi Morten,

     

    Thanks for pointing the issues.

    files from ppc/gcc & corrupted files gzip1.6-1 is removed now.

     

    Thanks,

    Sangamesh



  • 47.  Re: yum for AIX Toolbox

    Posted Wed March 08, 2017 05:20 AM

    Originally posted by: Morten_Torstensen


    I found that if I delete the ppc/gcc directory, everything is OK. These files in that directory should come from the AIX version specific repositories, as far as I know.

    Maybe that directory should be deleted from the master site? (public.dhe.ibm.com)



  • 48.  Re: yum for AIX Toolbox

    Posted Thu April 27, 2017 06:06 PM

    Originally posted by: gurnskee


    Sadly, after performing an update via yum on a functional server, yum is now broken.  It appears that the python-pycurl-7.19.3-1 is now out of date with the remaining dependencies for yum.  The following output is generated when yum now fails to execute.

     

    $ yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

       Symbol resolution failed for /usr/lib/libcurl.a(libcurl.so.4) because:
            Symbol SSL_get0_alpn_selected (number 262) is not exported from dependent
              module /usr/lib/libssl.a(libssl.so).
            Symbol SSL_CTX_set_alpn_protos (number 263) is not exported from dependent
              module /usr/lib/libssl.a(libssl.so).
            Symbol SSL_COMP_free_compression_methods (number 271) is not exported from dependent
              module /usr/lib/libssl.a(libssl.so).
    Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    System error: Exec format error
    Examine .loader section symbols with the 'dump -Tv' command.

    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.12 (default, Feb 20 2017, 03:58:51) [C]

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

     



  • 49.  Re: yum for AIX Toolbox

    Posted Thu April 27, 2017 06:14 PM

    Originally posted by: gurnskee


    Reverting the updated curl version 7.53.1-1 back to 7.44.0-2 has resolved the issue and yum is now functional.  The curl package cannot be updated as it will break yum.

     



  • 50.  Re: yum for AIX Toolbox

    Posted Fri April 28, 2017 01:47 AM

    Originally posted by: sangameshm


    Hi Scott,

     

    Could you try running updtvpk and see what is the result ?

    Do you have the default aix openssl lpp package installed or rpm package of openssl is also installed ?

     

    Thanks,

    Sangamesh

     



  • 51.  Re: yum for AIX Toolbox

    Posted Fri April 28, 2017 07:55 AM

    Originally posted by: gurnskee


    Sangamesh,

     

    I did run the updtvpk prior to rolling back the curl package and yum still failed with the same error.  I only have IBM's packaged openssl software installed.

     

    $ lslpp -l '*openssl*'
      Fileset                      Level  State      Description
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      openssl.base             1.0.1.515  COMMITTED  Open Secure Socket Layer
      openssl.man.en_US        1.0.1.515  COMMITTED  Open Secure Socket Layer

    Path: /etc/objrepos
      openssl.base             1.0.1.515  COMMITTED  Open Secure Socket Layer
    $

    $ rpm -q openssl
    package openssl is not installed

    $

     

    Scott



  • 52.  Re: yum for AIX Toolbox

    Posted Mon May 15, 2017 05:56 AM

    Originally posted by: sangameshm


    Hi Scott,

     

    The version of openssl installed 1.0.1e (1.0.1.515) reached the end of support.

    Please could you update the openssl to latest version and see if it resolve the error.
    We built the curl with latest version where newer symbols are added to the openssl.

    latest openssl can be downloaded from https://www-01.ibm.com/marketing/iwm/iwm/web/reg/download.do?source=aixbp&lang=en_US&S_PKG=openssl&cp=UTF-8&dlmethod=http

     

    Thanks,

    Sangamesh



  • 53.  Re: yum for AIX Toolbox

    Posted Mon May 15, 2017 08:03 AM

    Originally posted by: gurnskee


    Sangamesh,

     

    I suspected as much, but we will have to locate the newer version within IBM's AIX distribution.  For this particular server we are at the latest certified (by our department) level of 7100-04-02-1614.  Thanks for the clarification.  Once we are at that openssl level, I'll confirm that all is working.

     

     

    Scott



  • 54.  Re: yum for AIX Toolbox

    Posted Wed May 17, 2017 08:48 AM

    Originally posted by: s859ky


    I am wondering if anyone else is seeing this behavior:

    I did a fresh install of yum from the new yum bundle (yum_bundle_v3.tar) that was posted on May 12 to https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc

    # oslevel -s
    7100-04-02-1614

    # yum check 
    check all    <---- looks clean

    # rpm -qa|grep gcc
    gcc-4.8.5-1.ppc
    gcc-cpp-4.8.5-1.ppc
    gcc-c++-4.8.5-1.ppc
    libgcc-4.8.5-1.ppc


    # yum install harfbuzz
     Setting up Install Process
     Resolving Dependencies
     --> Running transaction check
     ---> Package harfbuzz.ppc 0:1.2.7-1 will be installed
     --> Processing Dependency: libicuuc.a(shr.o) for package: harfbuzz-1.2.7-1.ppc
     --> Finished Dependency Resolution
     Error: Package: harfbuzz-1.2.7-1.ppc (AIX_Toolbox)
                Requires: libicuuc.a(shr.o)
      You could try using --skip-broken to work around the problem
      You could try running: rpm -Va --nofiles --nodigest

    I have opened a PMR 85119,082 on this same issue, as I'm trying to update WebSphere from 8.5.5.1 to 8.5.5.11, which requires graphical Installation Manager, which requires GTK, which requires harfbuzz.  Does anyone know how to resolve the library issue with libicuuc.a?

    Steve



  • 55.  Re: yum for AIX Toolbox

    Posted Wed May 17, 2017 02:01 PM

    Originally posted by: sangameshm


    Hi Steve,

     

    This library comes from ICU4C.rte lpp.

     

    # lslpp -w /usr/lib/libicuuc.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/lib/libicuuc.a                         ICU4C.rte             File

     

    Let me know if this is installed already. If so, then run the updtvpkg command and retry the harfbuzz install.

    Thanks,

    Sangamesh



  • 56.  Re: yum for AIX Toolbox

    Posted Wed May 17, 2017 02:48 PM

    Originally posted by: s859ky


    Sangamesh - 
         The fileset ICU4C.rte was already installed.  After running updtvpkg I can now install harfbuzz.  Thanks for your assistance.

    Steve 



  • 57.  Re: yum for AIX Toolbox

    Posted Fri June 02, 2017 03:21 PM

    Originally posted by: LoriB


    Hi Sanket,

    Are there any plans to make pgp available on AIX toolbox for installing with yum?   I have a request for it and the pre-compiled versions that I find are too old, was hoping to have access to it with the yum tool.   Thank you!



  • 58.  Re: yum for AIX Toolbox

    Posted Tue August 01, 2017 02:52 PM

    Originally posted by: BillyFowler


    after a

    # yum update

    yum no longer works

    # yum repolist
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

       Symbol resolution failed for /opt/freeware/lib/libcurl.a(libcurl.so.4) because:
            Symbol SSL_get0_alpn_selected (number 259) is not exported from dependent
              module /lib/libssl.a(libssl.so).
            Symbol SSL_CTX_set_alpn_protos (number 260) is not exported from dependent
              module /lib/libssl.a(libssl.so).
            Symbol SSL_COMP_free_compression_methods (number 268) is not exported from dependent
              module /lib/libssl.a(libssl.so).
    Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.
    System error: Exec format error
    Examine .loader section symbols with the 'dump -Tv' command.

    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

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

     

    I removed all of the rpms and installed the 1st versions with the same results.

     



  • 59.  Re: yum for AIX Toolbox

    Posted Tue August 22, 2017 01:26 AM

    Originally posted by: sanket


    Looks like the issue is due to older version of openssl on your system.

    Please update to latest openssl as the new RPMs are compiled with latest openssl of AIX.

    You can find the latest openssl for AIX @ https://www-01.ibm.com/marketing/iwm/iwm/web/reg/pick.do?source=aixbp&lang=en_US

     

    P.S. Please post open source packages and yum related question/queries/suggestion at AIX open source forum for more visibility

    Thanks

    Sanket



  • 60.  Re: yum for AIX Toolbox

    Posted Fri February 08, 2019 03:52 AM

    Originally posted by: syuu


    Hi, ALL

    I have an dependency error while installing yum_bundle as below. Does anyone has a clue?

    OS level is 7200-01-02-1717.

     

    test:/yum_bundle#ls -l /usr/lib/libtk8.4.so
    -r-xr-xr-x    1 root     system      1689585 Feb 24 2009  /usr/lib/libtk8.4.so
    test:/yum_bundle#
    test:/yum_bundle#
    test:/yum_bundle#
    test:/yum_bundle#lslpp -l | grep tk
      tk.base                    8.4.7.0  COMMITTED  Binary executable files of Tk
    test:/yum_bundle#rpm -qa | grep tk
    atk-2.20.0-2.ppc
    gtk2-2.24.30-2waixX11.ppc
    tk-8.6.8-2.ppc
    tk-devel-8.6.8-2.ppc
    test:/yum_bundle#
    test:/yum_bundle#
    test:/yum_bundle#rpm -Uvh *.rpm
    warning: package glib2-2.14.6-2.ppc was already added, replacing with glib2-2.56.1-2.ppc
    error: Failed dependencies:
            libtk8.4.so is needed by python-2.7.10-1.ppc
    test:/yum_bundle#



  • 61.  Re: yum for AIX Toolbox

    Posted Fri February 08, 2019 04:10 AM

    Originally posted by: AyappanP


    Can you run this command and paste the output ?

    # rpm -q --provides AIX-rpm | grep libtk