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

How to resolve Yum.sh dependency issue on AIX 7.1?

  • 1.  How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Thu September 07, 2017 03:18 PM

    Originally posted by: JOLUGO


    Hello and good afternoon,

     

    Linux Admin here who  recently inherited an AIX 7.1 server where our Development team is wanting Git installed. I have been going in circles and finally found the AIX Toolbox for Linux Applications that seemed promising. However, when running the shell script I keep running into a dependecy issue (relating to libcrypto.a and libssl.a) though the files are present on the server. I suspect that the developers may have moved it from its default location to /home/freeware/lib. Has anyone every encountered this issue and if so how was it resolved? have also attached a screenshot of the error as well.  Any help is greatly appreciated.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Fri September 08, 2017 12:17 AM

    Originally posted by: sanket


    Could you please provide output of following commands.

    # lslpp -l | grep ssl

    # rpm -qa | grep ssl

    # find /usr -name '*'libcrypto'*'

    # find /opt -name '*'libcrypto'*'


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Fri September 08, 2017 03:08 PM

    Originally posted by: JOLUGO


    Hi Sanket,

     

    Thank you for your reply. Here is the output of the following commands:

     

    lslpp -l | grep ssl
      openssl.base            0.9.8.1300  COMMITTED  Open Secure Socket Layer
      openssl.man.en_US       0.9.8.1300  COMMITTED  Open Secure Socket Layer
      openssl.base            0.9.8.1300  COMMITTED  Open Secure Socket Layer

     

    rpm -qa | grep ssl
      openssl-1.0.1g-1.ppc

     

    find /usr -name '*'libcrypto'*'
    /usr/lib/libcrypto.a
    /usr/lib/libcrypto.so
    /usr/linux/lib/libcrypto.a
    /usr/linux/lib/libcrypto.so
    /usr/linux/lib/libcrypto.so.1.0.1
    /usr/linux/lib64/libcrypto.so
    /usr/linux/lib64/libcrypto.so.1.0.1
    /usr/local/lib/libcrypto.a
    /usr/local/lib/libcrypto.so
    /usr/local/ssl/lib/libcrypto.a
    /usr/local/ssl/lib/pkgconfig/libcrypto.pc

     

    find /opt -name '*'libcrypto'*'

    No results returned.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 4.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Sat September 09, 2017 03:46 AM

    Originally posted by: sanket


    From the output looks like you have very old version of openssl.

    Also you have openssl rpm from other source that can cause conflict. 

    Though the output of find from /opt is confusing. If an openssl rpm from other source is installed there should be libraries in /opt/freeware/lib.

    Is it possible that someone has manually removed ?

    Please remove the openssl rpm and install latest version of openssl from following location.

     https://www-01.ibm.com/marketing/iwm/iwm/web/reg/pick.do?source=aixbp&lang=en_US

    AIX toolbox packages are built using AIX provided openssl hence you need to install latest openssl from IBM site.

    Other openssl can cause some conflict. 


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Sat September 09, 2017 09:48 AM

    Originally posted by: JOLUGO


    Thank you for the guidance. Is it safe to assume for the OpenSSL you recommend removed I can run the rpm -e without also uninstalling the AIX version of OpenSSL so I can proceed to update it? I'm not sure what the original developers intentions were as I see some libraries stored under /home/freeware/lib. I will proceed with uninstalling the non AIX version of OpenSSL and update you. Thanks.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Sun September 10, 2017 12:29 AM

    Originally posted by: sanket


    Yes. Generally the rpm openssl get installed in different path than the AIX version of openssl. But in your system I am seeing lot of object files missing. As you mentioned someone has manually moved files. Probably you should first try to install latest version of openssl (1.0.2) of AIX from web and then remove openssl rpm. It is possible that you have other rpm from same repository from where openssl rpm is installed and they are dependent on the openssl rpm. Also provide me rpm -qa output.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 7.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Mon September 11, 2017 08:57 AM

    Originally posted by: sanket


    You should also run "updtvpkg" command to update AIX-rpm virtual rpm package.
    Actual error is because of rpm is not able to find libcrypto in virtual AIX rpm package but your openssl on system is also very old so if you update AIX-rpm virtual package (updtvpkg) then you can again face issue hence I am asking to update to latest openssl from AIX first. Also you have another openssl rpm that can cause conflict with packages from toolbox.

    I would recommend following steps.

    1. Install latest openssl AIX images from the web location.

    2. run "updtvpkg" command.

    3. Remove openssl (rpm) from other source. Now this step is optional but you might face issue if you don't remove. This is because when some opensource package try to access AIX libcrypto and this one is in LIBPATH before.

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 8.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Mon September 11, 2017 03:02 PM

    Originally posted by: JOLUGO


    Hi Sanket,

     

    I have updated OpenSSH and OpenSSL from the AIX link you provided. That seem to do the trick as I was able to install the yum command and repository after resolving a few minor issues related to the yum.sh script. I am not having a different issue unfortunately. Upon completion of the script, I was instructed to run a yum update command, which I have posted the results below. I encountered some errors and upon attempting to run yum again, I receive "bash: /usr/bin/yum: A file or directory in the path name does not exist." Upon further investigation, it appears that usr/bin/yum is suppose to be a symbolic link to /opt/freeware/bin/yum that appears to have been removed.

     

     

    Running Transaction
    ** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
    httpd_64-2.4.6-1.ppc has missing requires of openssl >= ('0', '1.0.1', None)
      Updating   : zlib-1.2.11-1.ppc                                                                                                                     1/52
      Updating   : libgcc-6.3.0-1.ppc                                                                                                                   2/52
      Updating   : libstdc++-6.3.0-1.ppc                                                                                                              3/52
      Updating   : gmp-5.1.3-2.ppc                                                                                                                      4/52
      Updating   : mpfr-3.1.2-3.ppc                                                                                                                      5/52
      Updating   : libmpc-1.0.3-1.ppc                                                                                                                   6/52
      Updating   : ncurses-6.0-1.ppc                                                                                                                    7/52
      Installing : libffi-3.0.12-1.ppc                                                                                                                        8/52
      Updating   : openldap-2.4.40-2.ppc                                                                                                             9/52
    3004-686 Group "ldap" does not exist.
      Updating   : gcc-cpp-6.3.0-1.ppc                                                                                                                10/52
      Updating   : gcc-6.3.0-1.ppc                                                                                                                        11/52
      Updating   : libstdc++-devel-6.3.0-1.ppc                                                                                                     12/52
      Updating   : bzip2-1.0.6-2.ppc                                                                                                                     13/52
      Installing : libjpeg-6b-6.ppc                                                                                                                          14/52
      Updating   : expat-2.2.0-1.ppc                                                                                                                     15/52
      Updating   : python-2.7.12-2.ppc                                                                                                                 16/52
      Updating   : python-devel-2.7.12-2.ppc                                                                                                       17/52
      Updating   : python-tools-2.7.12-2.ppc                                                                                                       18/52
      Installing : tightvnc-1.3.10-1.ppc                                                                                                                 19/52
      Updating   : gcc-c++-6.3.0-1.ppc                                                                                                                20/52
      Updating   : sudo-1.8.20p2-3.ppc                                                                                                                21/52
      Updating   : openldap-devel-2.4.40-2.ppc                                                                                                          22/52
      Updating   : glib2-2.48.0-1.ppc                                                                                                                   23/52
      Updating   : ncurses-devel-6.0-1.ppc                                                                                                              24/52
      Updating   : curl-7.54.1-2.ppc                                                                                                                    25/52
      Updating   : wget-1.17.1-1.ppc                                                                                                                    26/52
      Updating   : tar-1.29-1.ppc                                                                                                                       27/52
      Cleanup    : gcc-c++-4.8.1-1.ppc                                                                                                                  28/52
      Cleanup    : gcc-cpp-4.8.1-1.ppc                                                                                                                  29/52
      Cleanup    : gcc-4.8.1-1.ppc                                                                                                                      30/52
      Cleanup    : libmpc-1.0.1-2.ppc                                                                                                                   31/52
      Cleanup    : mpfr-3.1.2-1.ppc                                                                                                                     32/52
      Cleanup    : libstdc++-devel-4.8.1-1.ppc                                                                                                          33/52
      Cleanup    : libstdc++-4.8.1-1.ppc                                                                                                                34/52
      Cleanup    : python-tools-2.7.10-1.ppc                                                                                                            35/52
      Cleanup    : python-devel-2.7.10-1.ppc                                                                                                            36/52
      Cleanup    : python-2.7.10-1.ppc                                                                                                                  37/52
      Cleanup    : ncurses-devel-5.9-1.ppc                                                                                                              38/52
      Cleanup    : openldap-devel-2.4.23-0.3.ppc                                                                                                        39/52
      Cleanup    : curl-7.52.1-1.ppc                                                                                                                    40/52
      Cleanup    : zlib-1.2.3-4.ppc                                                                                                                     41/52
      Cleanup    : openldap-2.4.23-0.3.ppc                                                                                                              42/52
      Cleanup    : ncurses-5.9-1.ppc                                                                                                                    43/52
      Cleanup    : bzip2-1.0.5-3.ppc                                                                                                                    44/52
      Cleanup    : libgcc-4.8.1-1.ppc                                                                                                                   45/52
      Cleanup    : gmp-5.0.5-1.ppc                                                                                                                      46/52
      Erasing    : vnc-3.3.3r2-6.ppc                                                                                                                    47/52
      Cleanup    : glib2-2.14.6-2.ppc                                                                                                                   48/52
      Cleanup    : sudo-1.8.18-1.ppc                                                                                                                    49/52
      Cleanup    : wget-1.9.1-1.ppc                                                                                                                     50/52
      Cleanup    : tar-1.22-1.ppc                                                                                                                       51/52
      Cleanup    : expat-2.1.0-1.ppc                                                                                                                    52/52
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
      File "/opt/freeware/share/yum-cli/yummain.py", line 223, in main
      File "/opt/freeware/share/yum-cli/cli.py", line 599, in doTransaction
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 1565, in runTransaction
      File "/opt/freeware/lib/python2.7/site-packages/yum/rpmsack.py", line 329, in dropCachedDataPostTransaction
      File "/opt/freeware/lib/python2.7/genericpath.py", line 62, in getmtime
    OSError: [Errno 2] A file or directory in the path name does not exist.: '//var/lib/rpm/Packages'

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 9.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Fri September 22, 2017 08:42 AM

    Originally posted by: sanket


    Any idea how the /opt/freeware/bin/yum is removed ? 

    None of our script or package remove that file. 

    Also in your output it says 

    OSError: [Errno 2] A file or directory in the path name does not exist.: '//var/lib/rpm/Packages'

    There is something wrong in your system. Generally yum installation and update is pretty smooth.

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 10.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Sun September 24, 2017 05:13 PM

    Originally posted by: JOLUGO


    Hi Sanket,

     

    Thanks for your assistance. I'm in agreement that this system has many issues besides the yum installation issues. I have decided to create a clean AIX 7.2 image to use going forward.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 11.  Re: How to resolve Yum.sh dependency issue on AIX 7.1?

    Posted Mon February 10, 2020 08:11 AM

    Originally posted by: phhermes


    Hi,

    Thank you Sanket, for all answers written, it solved the problem encountered as written in this thread.

    1/ Download updates for ssl and for ssh (url : https://www-01.ibm.com/marketing/iwm/iwm/web/pickUrxNew.do?source=aixbp)
    2/ smitty all_al with these updated filesets

    3) updtvpkg

    4)  then yum update runs perfectly on the AIX 7.1 partition

    Great

    Philippe


    #AIXOpenSource
    #AIX-Open-Source-Software