AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

bash install issue

  • 1.  bash install issue

    Posted Thu May 26, 2022 07:27 AM
    When I installed bash on AIX 7.2, I got the following error.
    # rpm -ivh bash-5.1.4-2.aix6.1.ppc.rpm
    error: Failed dependencies:
            libiconv> = 1.16 is needed by bash-5.1.4-2.ppc
            libiconv.a (libiconv.so.2) is needed by bash-5.1.4-2.ppc
    
    Regarding dependencies, please tell me all the packages required to successfully install bash.
    Thank you.


    ------------------------------
    薫 岡田
    ------------------------------


  • 2.  RE: bash install issue
    Best Answer

    Posted Thu May 26, 2022 09:25 AM

    The AIX Toolbox team recommends using DNF (the next-generation replacement for YUM) to install and manage Open Source software packages and dependencies from the AIX Toolbox.

    • For easy DNF installation, use the dnf_aixtoolbox.sh script.
      • The script will download and install the required rpm.rte version, and all the packages needed for DNF.
    • Non-AIX Toolbox packages that deliver files available in AIX file sets or AIX Toolbox packages might result in unexpected behavior. It is recommended to remove those non-AIX Toolbox packages.
      • Some common packages include openssl, gcc, db, and libiconv.
    • Setting the system LIBPATH to load other paths before /opt/freeware/lib might cause failures for AIX Toolbox applications.
      • If your application has explicit LIBPATH requirements, it is recommended to apply the LIBPATH to the application via a wrapper or configuration file. Do not set a global LIBPATH before loading AIX Toolbox software.


    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 3.  RE: bash install issue

    Posted Thu May 26, 2022 10:00 AM
    Ms.Jan Harris
    Thank you for your response.
    
    The environment I'm using here wants to install bash on AIX, which doesn't have an internet connection.
    To install DNF on AIX with no internet connection and install bash, do I need to download and install the required rpm packages for bash in an internet-enabled environment using DNF?
    If so, I would like to know the required rpm package.
    Please teach me.
    Thank you.


    ------------------------------
    Kaoru Okada
    ------------------------------



  • 4.  RE: bash install issue

    Posted Thu May 26, 2022 10:26 AM

    The best way would be to create a local repository on a server that does have an internet connection, assuming the server needing bash can connect to it.

     

    Instructions are here:

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

     

     


      


    Brian Ford  Architect IT SR
    O 702-880-6929  
    One Harrah's Court | Las Vegas, NV 89119
    Caesars | Harrah's | Horseshoe
    www.caesars.com






  • 5.  RE: bash install issue

    Posted Fri May 27, 2022 12:50 AM
    Mr. Brian
    Thank you for your reply.

    The AIX environment in which we want to install bash is not connected to the internet environment, only a Windows PC can connect to the internet and get the required components.
    If so, how do we get the components we need?
    Thank you.



    ------------------------------
    Kaoru Okada
    ------------------------------



  • 6.  RE: bash install issue

    Posted Fri May 27, 2022 01:04 PM

    Then you should goto:

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

     

    grab the appropriate dnf package and the .sh script to install.

     

    Make sure to run:

    /usr/sbin/updtvpkg

     

    Then do a localinstall with dnf

    sudo dnf localinstall <whatever>.rpm

     

     

    you'll likely need to download more rpms based on dependencies required.

     

     


      


    Brian Ford  Architect IT SR
    O 702-880-6929  
    One Harrah's Court | Las Vegas, NV 89119
    Caesars | Harrah's | Horseshoe
    www.caesars.com






  • 7.  RE: bash install issue

    Posted Fri May 27, 2022 05:00 PM
    TIP: Since DNF has replaced YUM, this is the newer solution:

    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

    FYI:  The ESS site mentioned as source for the Toolbox ISO image is located here:  https://www.ibm.com/servers/eserver/ess
    The Toolbox image is in the AIX Standard, or Enterprise edition product.

    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------



  • 8.  RE: bash install issue

    Posted Mon May 30, 2022 04:08 AM
    Ms.Jan Harris
    Thank you for your response.
    Could you please tell me how to install only bash using DNF after creating a local repository?
    Thank you for your cooperation.

    ------------------------------
    Kaoru Okada
    ------------------------------



  • 9.  RE: bash install issue

    Posted Thu June 02, 2022 02:29 AM
    Ms.Jan Harris
    When I ran Creating local repo with DNF and AIX Toolbox Media Image, I got the following error:
    Please tell me the solution.

    We are implementing the following items that you have taught us.
    1. Download AIX toolbox media ISO/tar format image from either the Entitled System Support (ESS)
    2. Mount the iso or extract the .tar.gz file into the path of your preference where it should have the required free disk
    space of around 5.5GB for .tar.gz extraction.
    3. Run the dnf_aixtoolbox_local.sh script located at /mnt/ezinstall/ppc/dnf_aixtoolbox_local.sh


    error: Failed dependencies:
    dnf = 4.2.17-32_1 is needed by yum-4.2.17-32_1.noarch
    dnf-data = 4.2.17-32_1 is needed by yum-4.2.17-32_1.noarch
    dnf installation failed.
    If the failure was due to a space issue, increase the size of / opt and re-run script again.
    Another reason for failure could be mixing of Toolbox packages and packages from other sources.
    Please check the failure error, correct it and retry again.


    Thank you very much.

    ------------------------------
    Kaoru Okada
    ------------------------------



  • 10.  RE: bash install issue

    Posted Fri June 03, 2022 05:01 AM
    Ms.Jan Harris
    Thank you for your teachings.

    Thanks to you, I was able to solve it.
    Thank you very much.


    ------------------------------
    Kaoru Okada
    ------------------------------



  • 11.  RE: bash install issue

    Posted Mon May 30, 2022 04:06 AM
    Mr. Brian
    Thank you for your reply.
    we understand that we have to install and use DNF.
    Thank you very much.
    If we can't understand, we will ask you a question. Thank you.


    ------------------------------
    Kaoru Okada
    ------------------------------



  • 12.  RE: bash install issue

    Posted Fri June 03, 2022 05:03 AM
    Mr. Brian Ford
    Thank you for your teachings.
    Thanks to you, I was able to solve it.
    Thank you very much.


    ------------------------------
    Kaoru Okada
    ------------------------------