AIX Open Source

 View Only
  • 1.  RPM Packages Installation Failed with Dependencies Issue

    Posted Tue August 02, 2022 11:20 AM
      |   view attached
    We would like to install following rpm packages:
    1. git 2.35.1
    2. python3 3.7.12
    3. screen 4.7.0
    4. vim-common 8.2.4938
    5. vim-enhanced 8.2.4938
    6. curl 7.79.1
    7. zip 3.0 / unzip 6.0

    But it failed with many "error: failed dependencies".

    ##### Example Install package curl, git & python #####

    root@ssitaflsweb01:/system/FLS-FLP/FLS-install/# rpm -ivh curl-7.79.1-1.aix6.1.ppc.rpm
    error: Failed dependencies:
    ca-certificates >= 2020.06.01 is needed by curl-7.79.1-1.ppc
    krb5-libs >= 1.18.3 is needed by curl-7.79.1-1.ppc
    libcom_err.a(libcom_err.so) is needed by curl-7.79.1-1.ppc
    libgcc >= 8.3.0 is needed by curl-7.79.1-1.ppc
    libgssapi_krb5.a(libgssapi_krb5.so) is needed by curl-7.79.1-1.ppc
    libk5crypto.a(libk5crypto.so) is needed by curl-7.79.1-1.ppc
    libkrb5.a(libkrb5.so) is needed by curl-7.79.1-1.ppc
    liblber.a(liblber-2.4.so.2) is needed by curl-7.79.1-1.ppc
    libldap.a(libldap-2.4.so.2) is needed by curl-7.79.1-1.ppc
    libssh2 >= 1.9.0 is needed by curl-7.79.1-1.ppc
    libssh2.a(libssh2.so.1) is needed by curl-7.79.1-1.ppc
    openldap >= 2.4.56-2 is needed by curl-7.79.1-1.ppc

    root@ssitaflsweb01:/system/FLS-FLP/FLS-install/# rpm -ivh git-2.35.1-1.aix7.1.ppc.rpm
    error: Failed dependencies:
    /opt/freeware/bin/perl is needed by git-2.35.1-1.ppc
    bash >= 5.0-2 is needed by git-2.35.1-1.ppc
    gettext >= 0.19.8.1-5 is needed by git-2.35.1-1.ppc
    git-core = 2.35.1-1 is needed by git-2.35.1-1.ppc
    git-core-doc = 2.35.1-1 is needed by git-2.35.1-1.ppc
    less >= 551-1 is needed by git-2.35.1-1.ppc
    libiconv >= 1.16-1 is needed by git-2.35.1-1.ppcpython3 >= 3.7.12-1 is needed by git-2.35.1-1.ppc
    rsync >= 3.2.3-1 is needed by git-2.35.1-1.ppc

    root@ssitaflsweb01:/system/FLS-FLP/FLS-install/# rpm -ivh python3-3.7.12-1.aix6.1.ppc.rpm
    error: Failed dependencies:
    bzip2 >= 1.0.8 is needed by python3-3.7.12-1.ppc
    expat >= 2.2.9 is needed by python3-3.7.12-1.ppc
    gdbm >= 1.18.1 is needed by python3-3.7.12-1.ppc
    gettext >= 0.19.8.1 is needed by python3-3.7.12-1.ppc
    libffi >= 3.2.1 is needed by python3-3.7.12-1.ppc
    libgcc >= 8.3.0 is needed by python3-3.7.12-1.ppc
    libgdbm.a(libgdbm.so.6) is needed by python3-3.7.12-1.ppc
    liblzma.a(liblzma.so.5) is needed by python3-3.7.12-1.ppc
    libncurses.so is needed by python3-3.7.12-1.ppc
    libpanel.so is needed by python3-3.7.12-1.ppc
    ncurses >= 6.2 is needed by python3-3.7.12-1.ppc
    readline >= 8.0-2 is needed by python3-3.7.12-1.ppc
    sqlite >= 3.32.1 is needed by python3-3.7.12-1.ppc
    xz-libs >= 5.2.4 is needed by python3-3.7.12-1.ppc

    root@ssitaflsweb01:/system/FLS-FLP/FLS-install/# rpm -ivh vim-enhanced-8.2.4938-1.aix6.1.ppc.rpm
    error: Failed dependencies:gettext >= 0.19.8.1-5 is needed by vim-enhanced-8.2.4938-1.ppc
    libiconv >= 1.16-1 is needed by vim-enhanced-8.2.4938-1.ppc
    libncurses.a(libncurses.so.6) is needed by vim-enhanced-8.2.4938-1.ppc
    libsodium >= 1.0.18-1 is needed by vim-enhanced-8.2.4938-1.ppc
    libsodium.a(libsodium.so.23) is needed by vim-enhanced-8.2.4938-1.ppc
    ncurses >= 6.2-1 is needed by vim-enhanced-8.2.4938-1.ppc

    root@ssitaflsweb01:/system/FLS-FLP/FLS-install/# rpm -ivh zip-3.0-4.aix6.1.ppc.rpm
    error: Failed dependencies:
    bzip2 >= 1.0.8-2 is needed by zip-3.0-4.ppc

    ##### Example Install Addition package #####

    root@ssitaflsweb01:/system/FLS-FLP/FLS-require/# rpm -ivh bzip2-1.0.8-2.aix6.1.ppc.rpm
    error: Failed dependencies:
    libgcc >= 6.3.0-2 is needed by bzip2-1.0.8-2.ppc

    root@ssitaflsweb01:/system/FLS-FLP/FLS-require/# rpm -ivh xz-libs-5.2.5-1.aix6.1.ppc.rpm
    error: Failed dependencies:
    libgcc >= 8.3.0 is needed by xz-libs-5.2.5-1.ppc
    root@ssitaflsweb01:/system/FLS-FLP/FLS-require/# rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm
    error: Failed dependencies:
    gettext >= 0.21-1 is needed by libiconv-1.17-1.ppc
    libgcc >= 8.3.0 is needed by libiconv-1.17-1.ppc
    root@ssitaflsweb01:/system/FLS-FLP/FLS-require/# rpm -ivh gettext-0.21-1.aix7.1.ppc.rpm
    error: Failed dependencies:
    glib2 >= 2.56.1 is needed by gettext-0.21-1.ppc
    libgcc >= 8.3.0 is needed by gettext-0.21-1.ppc
    libgomp >= 8.3.0 is needed by gettext-0.21-1.ppc
    libgomp.a(libgomp.so.1) is needed by gettext-0.21-1.ppc
    libiconv >= 1.16 is needed by gettext-0.21-1.ppc
    libncurses.a(libncurses.so.6) is needed by gettext-0.21-1.ppc
    libstdc++ >= 8.3.0 is needed by gettext-0.21-1.ppc
    libstdc++.a(libstdc++.so.6) is needed by gettext-0.21-1.ppc
    libtextstyle = 0.21-1 is needed by gettext-0.21-1.ppc
    libtextstyle.a(libtextstyle.so.0) is needed by gettext-0.21-1.ppc
    libunistring >= 0.9.9-2 is needed by gettext-0.21-1.ppc
    libunistring.a(libunistring.so.2) is needed by gettext-0.21-1.ppc
    libxml2 >= 2.9.9 is needed by gettext-0.21-1.ppc
    ncurses >= 6.2 is needed by gettext-0.21-1.ppc

    root@ssitaflsweb01:/system/FLS-FLP/FLS-require/# rpm -ivh ncurses-6.2-3.aix6.1.ppc.rpm
    error: Failed dependencies:
    libgcc >= 8.3.0-1 is needed by ncurses-6.2-3.ppc
    libstdc++ >= 8.3.0-1 is needed by ncurses-6.2-3.ppc
    libstdc++.a(libstdc++.so.6) is needed by ncurses-6.2-3.ppc


    Questions:
    1) Even the higher version of some dependency package already be  installed,   why it still require the lower version or greater on other packages?
        For example, when we tried to install curl, git and python packages, even there already are "libgcc8-8.3.0-6" installed, but it still failed with the error of      "libgcc >= 8.3.0 is needed by <package name>".

    2) Please advise of how to solve the dependency error as above and successfully install all software packages.

    ------------------------------
    JARIYA PAKSEESING
    ------------------------------

    Attachment(s)



  • 2.  RE: RPM Packages Installation Failed with Dependencies Issue

    Posted Tue August 02, 2022 12:07 PM
    RPMs are best managed using dnf. Please install dnf using https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/dnf_aixtoolbox.sh script and then install packages of your interest. dnf will automatically resolve the RPM dependencies and install them.
    If you do not want to install dnf or you can not install dnf then you will have to manually install all the dependencies and that is very tedious job.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: RPM Packages Installation Failed with Dependencies Issue

    Posted Thu August 04, 2022 11:28 PM
    Hi Sanket,

    Thank you for your reply. 
    I have tried to install DNF and setup local repo with AIX Toolbox Media Image following the steps in these discussions:

    - Creating local repo with DNF and AIX Toolbox Media Image => https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/02/09/creating-local-repo-with-dnf-and-aix-toolbox-media?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9

    - DNF failed to run on AIX 7.2: => https://community.ibm.com/community/user/power/communities/community-home/digestviewer/viewthread?MessageKey=88dbe945-083d-4ee2-b789-dd61e2dfa9f5&CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&bm=88dbe945-083d-4ee2-b789-dd61e2dfa9f5#bm88dbe945-083d-4ee2-b789-dd61e2dfa9f5

    And now we can install AIX Open Source RPM packages successfully without dependency error anymore.

    ------------------------------
    JARIYA PAKSEESING
    ------------------------------



  • 4.  RE: RPM Packages Installation Failed with Dependencies Issue

    Posted Thu July 20, 2023 09:09 AM

    How to install and configure dnf on LPARS belonging to yellow zone.

    We have some LPARS in yellow zone for pentest. External vendor has requested some debugging and GNU toolchains to be installed. But due to recursive dependency it's keep going nowhere. So dnf is the only option.

    But public.dhe.ibm.com is not accessible from yellow zone.

     



    ------------------------------
    Anoop Mourya
    ------------------------------



  • 5.  RE: RPM Packages Installation Failed with Dependencies Issue

    Posted Thu July 20, 2023 10:21 AM

    You should create a local dnf repo and use it.

    Here is an article how to create local yum repo for AIX but same applied for dnf just use dnf tools.

    https://developer.ibm.com/articles/configure-yum-on-aix/

     

     

    It is same as for any other RPM based system in yellow zone.

    You can also use AIX Toolbox media to create local repo or install packages.

    https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/02/09/creating-local-repo-with-dnf-and-aix-toolbox-media

     

    Thanks,