Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

yum installation error

Archive User

Archive UserThu March 23, 2017 03:03 AM

Archive User

Archive UserMon September 03, 2018 06:07 AM

  • 1.  yum installation error

    Posted Wed March 22, 2017 11:18 AM

    Originally posted by: mwshelton


    I'm getting dependency errors when attempting to install "yum" on AIX 7100-03-04-1441.  Following the directions in "README-yum", I installed "rpm.rte":

    
    # lslpp -l rpm.rte
      Fileset                      Level  State      Description
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      rpm.rte                    4.9.1.3  COMMITTED  RPM Package Manager
    
    Path: /etc/objrepos
      rpm.rte                    4.9.1.3  COMMITTED  RPM Package Manager
    

    I then downloaded and un-packed "yum_bundle.tar":

    
    # ls
    ca-certificates-2016.10.7-1.aix6.1.ppc.rpm
    curl-7.52.1-1.aix6.1.ppc.rpm
    db-4.8.24-3.aix6.1.ppc.rpm
    gdbm-1.8.3-5.aix5.2.ppc.rpm
    gettext-0.19.7-1.aix6.1.ppc.rpm
    glib2-2.14.6-2.aix5.2.ppc.rpm
    pysqlite-1.1.7-2.aix6.1.ppc.rpm
    python-2.7.10-1.aix6.1.ppc.rpm
    python-devel-2.7.10-1.aix6.1.ppc.rpm
    python-iniparse-0.4-1.aix6.1.noarch.rpm
    python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    python-tools-2.7.10-1.aix6.1.ppc.rpm
    python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    readline-6.1-2.aix6.1.ppc.rpm
    sqlite-3.15.2-1.aix6.1.ppc.rpm
    yum-3.4.3-4.aix6.1.noarch.rpm
    yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
    

    But when I try to install those:

    
    # rpm -iv *
    error: Failed dependencies:
            libcrypto.a(libcrypto.so) is needed by curl-7.52.1-1.ppc
            libssl.a(libssl.so) is needed by curl-7.52.1-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
            libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc
    

    The needed files do exist in "/usr/lib":

    
    # ls /usr/lib/libcrypto.* /usr/lib/libssl.*
    /usr/lib/libcrypto.a         /usr/lib/libssl.a
    /usr/lib/libcrypto.so.1.0.0  /usr/lib/libssl.so.1.0.0
    

    Any suggestions?

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: yum installation error

    Posted Thu March 23, 2017 03:03 AM

    Originally posted by: sangameshm


    Hi Mike,

     

    Looks like you have an openssl rpm installed from some other source.

    All our rpm packages are built using default AIX provided openssl libraries (libcrypto.a & libss.a) from openssl.base

     

    Can you provide the output of below commands.

    ar -X32_64 -tv  /usr/lib/libcrypto.a

    ar -X32_64 -tv /usr/lib/libssl.a

     

    rpm -qf /usr/lib/libssl.a /usr/lib/libcrypto.a /usr/lib/libcrypto.so.1.0.0 /usr/lib/libssl.so.1.0.0

     

    Thanks,

    Sangamesh


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: yum installation error

    Posted Thu March 23, 2017 09:29 AM

    Originally posted by: mwshelton


    Thank you, Sangamesh.  Here're the requested listings:

    
    # ar -X32_64 -tv  /usr/lib/libcrypto.a
    rwxr-xr-x     0/0     2967588 Jul 24 08:46 2015 libcrypto.so
    rwxr-xr-x     0/0     2256131 Jul 24 08:43 2015 libcrypto.so.0.9.8
    rwxr-xr-x     0/0     2967588 Jul 24 08:45 2015 libcrypto.so.1.0.0
    rwxr-xr-x     0/0     3376521 Jul 24 08:46 2015 libcrypto64.so
    rwxr-xr-x     0/0     2606185 Jul 24 08:44 2015 libcrypto64.so.0.9.8
    rwxr-xr-x     0/0     3376521 Jul 24 08:45 2015 libcrypto64.so.1.0.0
    
    # ar -X32_64 -tv /usr/lib/libssl.a
    rwxr-xr-x     0/0     648786 Jul  9 02:22 2015 libssl.so
    rwxr-xr-x     0/0     512016 Jul  9 02:23 2015 libssl.so.0.9.8
    rwxr-xr-x     0/0     648786 Jul  9 02:22 2015 libssl.so.1.0.0
    rwxr-xr-x     0/0     734813 Jul  9 02:22 2015 libssl64.so
    rwxr-xr-x     0/0     579116 Jul  9 02:23 2015 libssl64.so.0.9.8
    rwxr-xr-x     0/0     734813 Jul  9 02:22 2015 libssl64.so.1.0.0
    
    # rpm -qf /usr/lib/libssl.a /usr/lib/libcrypto.a /usr/lib/libcrypto.so.1.0.0 /usr/lib/libssl.so.1.0.0
    file /usr/lib/libssl.a is not owned by any package
    file /usr/lib/libcrypto.a is not owned by any package
    file /usr/lib/libcrypto.so.1.0.0 is not owned by any package
    file /usr/lib/libssl.so.1.0.0 is not owned by any package
    

    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: yum installation error

    Posted Thu March 23, 2017 09:40 AM

    Originally posted by: AyappanP


    Hi Mike,

     

    Did you run "updtvpkg" command after installing the rpm.rte fileset ?

    This command is needed after installing the rpm.rte fileset for rpm to recognize the packages installed via installp.

     

    Thanks

    Ayappan P

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: yum installation error

    Posted Thu March 23, 2017 09:45 AM

    Originally posted by: mwshelton


    Hi, Ayappan.

    Yes, I did.  I actually ran it every time I changed anything (extracting files, creating symlinks, updating paths, etc.) but it didn't seem to help.

    Thanks


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: yum installation error

    Posted Thu March 23, 2017 10:16 AM

    Originally posted by: AyappanP


    Hmm , interesting.

    Can you share the output of below commands ?

    rpm -q AIX-rpm --provides | grep crypt

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


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 7.  Re: yum installation error

    Posted Thu March 23, 2017 10:30 AM

    Originally posted by: mwshelton


    
    # rpm -q AIX-rpm --provides | grep crypt
    libcrypt.a(shr.o)
    libcrypt.a(shr_64.o)
    libcrypto.a(libcrypto.so.0.9.8)
    libcrypto.a(libcrypto.so.1.0.0)
    libcrypto.a(libcrypto64.so.0.9.8)
    libcrypto.a(libcrypto64.so.1.0.0)
    libcrypto_compat.a(libcrypto.so.0.9.8)
    libcrypto_compat.a(libcrypto64.so.0.9.8)
    libxcrypt.a(shr.o)
    libxcrypt.a(shr_64.o)
    liby4crypt.a(shr.o)
    liby4crypt.a(shr_64.o)
    
    # rpm -q AIX-rpm --provides | grep ssl
    libssl.a(libssl.so.0.9.8)
    libssl.a(libssl.so.1.0.0)
    libssl.a(libssl64.so.0.9.8)
    libssl.a(libssl64.so.1.0.0)
    libssl3.a(libssl3.so)
    libssl3.so
    libssl_compat.a(libssl.so.0.9.8)
    libssl_compat.a(libssl64.so.0.9.8)
    

    #AIX-Open-Source-Software
    #AIXOpenSource


  • 8.  Re: yum installation error

    Posted Thu March 23, 2017 11:04 AM

    Originally posted by: AyappanP


    Now it's pretty clear. You see there is no "libssl.so and libcrypto.so" files in the output.

    My system output

    # rpm -q AIX-rpm --provides | grep crypt
    libcrypt.a(shr.o)
    libcrypt.a(shr_64.o)
    libcrypto.a(libcrypto.so)
    libcrypto.a(libcrypto.so.0.9.8)
    libcrypto.a(libcrypto.so.1.0.0)
    libcrypto.a(libcrypto64.so)
    libcrypto.a(libcrypto64.so.0.9.8)
    libcrypto.a(libcrypto64.so.1.0.0)
    libcrypto_compat.a(libcrypto.so)
    libcrypto_compat.a(libcrypto.so.0.9.8)
    libcrypto_compat.a(libcrypto64.so)
    libcrypto_compat.a(libcrypto64.so.0.9.8)
    libsncrypt.a(shr.o)
    libsncrypt.a(shr_64.o)
    liby4crypt.a(shr.o)
    liby4crypt.a(shr_64.o)

    (0) root @ green53: 7.2.0.0: /opt/freeware/etc/rpm/macros
    # rpm -q AIX-rpm --provides | grep ssl
    libssl.a(libssl.so)
    libssl.a(libssl.so.0.9.8)
    libssl.a(libssl.so.1.0.0)
    libssl.a(libssl64.so)
    libssl.a(libssl64.so.0.9.8)
    libssl.a(libssl64.so.1.0.0)
    libssl3.a(libssl3.so)
    libssl3.so
    libssl_compat.a(libssl.so)
    libssl_compat.a(libssl.so.0.9.8)
    libssl_compat.a(libssl64.so)
    libssl_compat.a(libssl64.so.0.9.8)

     

    Something wrong with the rpm database. Can you run "rpm --rebuilddb" and check ?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 9.  Re: yum installation error

    Posted Thu March 23, 2017 11:14 AM

    Originally posted by: mwshelton


    Thank you, Ayappan.  That, followed by another run of "uptdvpkg", fixed it.

    I appreciate your and Sangamesh's help!


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 10.  Re: yum installation error

    Posted Mon September 03, 2018 06:07 AM

    Originally posted by: TDS 6.3


    Hi,

     

    I'm also facing the same issue on AIX 7.1, could anyone help me on this please.

     

    #-> lslpp -la rpm.rte
      Fileset                      Level  State      Description
      ----------------------------------------------------------------------------
    Path: /usr/lib/objrepos
      rpm.rte                   4.13.0.4  COMMITTED  RPM Package Manager

    Path: /etc/objrepos
      rpm.rte                   4.13.0.4  COMMITTED  RPM Package Manager

     

    and downloaded yum.bundle

    #-> ls -ltr
    total 142672
    -rw-r-----    1 204      staff       4036762 Feb 24 2017  gettext-0.19.7-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff         56991 Feb 24 2017  gdbm-1.8.3-5.aix5.2.ppc.rpm
    -rw-r-----    1 204      staff       2897799 Feb 24 2017  db-4.8.24-3.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff        533288 Feb 24 2017  curl-7.52.1-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff         51749 Feb 24 2017  pysqlite-1.1.7-2.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff       1686134 Feb 24 2017  glib2-2.14.6-2.aix5.2.ppc.rpm
    -rw-r-----    1 204      staff       3570302 Feb 24 2017  sqlite-3.15.2-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff        489547 Feb 24 2017  readline-6.1-2.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff        158584 Feb 24 2017  python-urlgrabber-3.10.1-1.aix6.1.noarch.rpm
    -rw-r-----    1 204      staff        830446 Feb 24 2017  python-tools-2.7.10-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff        162093 Feb 24 2017  python-pycurl-7.19.3-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff         37912 Feb 24 2017  python-iniparse-0.4-1.aix6.1.noarch.rpm
    -rw-r-----    1 204      staff      15366474 Feb 24 2017  python-devel-2.7.10-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff      23333701 Feb 24 2017  python-2.7.10-1.aix6.1.ppc.rpm
    -rw-r-----    1 204      staff         62283 Feb 24 2017  yum-metadata-parser-1.1.4-2.aix6.1.ppc.rpm
    -rw-r--r--    1 204      staff        214726 May 12 2017  ca-certificates-2016.10.7-2.aix6.1.ppc.rpm
    -rw-r--r--    1 root     system      1380725 Aug  3 2017  yum-3.4.3-5.aix6.1.noarch.rpm
    drwxrwxr-x    5 1000     1000            256 Aug 27 12:32 panopta-agent-2018.52.6
    -rw-r--r--    1 root     system     18145280 Sep  3 04:10 panopta-agent-tarball-latest.tar

     

     

    #-> rpm -iv *
    error: Failed dependencies:
            libcrypto.a(libcrypto.so) is needed by curl-7.52.1-1.ppc
            libssl.a(libssl.so) is needed by curl-7.52.1-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
            libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc

     

    #->  ar -X32_64 -tv  /usr/lib/libcrypto.a
    rwxrwxr-x 435159/781431 2965832 May  1 02:57 2014 libcrypto.so.1.0.0
    rwxrwxr-x 435159/781431 2253655 May  1 02:58 2014 libcrypto.so.0.9.8
    rwxrwxr-x 435159/781431 3374053 May  1 02:57 2014 libcrypto64.so.1.0.0
    rwxrwxr-x 435159/781431 2602169 May  1 02:58 2014 libcrypto64.so.0.9.8
    [root@aix61a:/tmp/install]#
    #-> ar -X32_64 -tv /usr/lib/libssl.a
    rwxrwxr-x 435159/781431 645267 May  1 02:57 2014 libssl.so.1.0.0
    rwxrwxr-x 435159/781431 509328 May  1 02:58 2014 libssl.so.0.9.8
    rwxrwxr-x 435159/781431 730750 May  1 02:57 2014 libssl64.so.1.0.0
    rwxrwxr-x 435159/781431 575936 May  1 02:58 2014 libssl64.so.0.9.8
    [root@aix61a:/tmp/install]#
    #-> rpm -qf /usr/lib/libssl.a /usr/lib/libcrypto.a /usr/lib/libcrypto.so.1.0.0 /usr/lib/libssl.so.1.0.0
    file /usr/lib/libssl.a is not owned by any package
    file /usr/lib/libcrypto.a is not owned by any package
    error: file /usr/lib/libcrypto.so.1.0.0: No such file or directory
    error: file /usr/lib/libssl.so.1.0.0: No such file or directory

     

     

    #-> rpm -q AIX-rpm --provides | grep crypt
    libcrypt.a(shr.o)
    libcrypt.a(shr_64.o)
    libcrypto.a(libcrypto.so.0.9.8)
    libcrypto.a(libcrypto.so.1.0.0)
    libcrypto.a(libcrypto64.so.0.9.8)
    libcrypto.a(libcrypto64.so.1.0.0)
    libcrypto_compat.a(libcrypto.so.0.9.8)
    libcrypto_compat.a(libcrypto64.so.0.9.8)
    libxcrypt.a(shr.o)
    libxcrypt.a(shr_64.o)
    liby4crypt.a(shr.o)
    liby4crypt.a(shr_64.o)
    [root@aix61a:/tmp/install]#
    #->  rpm -q AIX-rpm --provides | grep ssl
    libssl.a(libssl.so.0.9.8)
    libssl.a(libssl.so.1.0.0)
    libssl.a(libssl64.so.0.9.8)
    libssl.a(libssl64.so.1.0.0)
    libssl3.a(libssl3.so)
    libssl3.so
    libssl_compat.a(libssl.so.0.9.8)
    libssl_compat.a(libssl64.so.0.9.8)
    [root@aix61a:/tmp/install]#
    #->

     

     

     

    #-> rpm --rebuilddb
    [root@aix61a:/tmp/install]#
    #->

     

     

    #-> updtvpkg
    Please wait...error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag
    error: incorrect format: unknown tag

    [root@aix61a:/tmp/install]#
    #-> rpm -iv *
    error: Failed dependencies:
            libcrypto.a(libcrypto.so) is needed by curl-7.52.1-1.ppc
            libssl.a(libssl.so) is needed by curl-7.52.1-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-2.7.10-1.ppc
            libssl.a(libssl.so) is needed by python-2.7.10-1.ppc
            libcrypto.a(libcrypto.so) is needed by python-pycurl-7.19.3-1.ppc
    [root@aix61a:/tmp/install]#
    #->

     

     

    still same error, any suggestions please

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 11.  Re: yum installation error

    Posted Mon September 03, 2018 06:57 AM