watsonx Assistant

watsonx Assistant

Conversational AI for fast and friendly customer care

 View Only
  • 1.  Installing AWS CLI on AIX 7.2

    Posted Mon July 08, 2024 06:52 PM

    I have the tasks of installing AWS CLI onto AIX 7.2. I have yum and rpm packages installed already.
    I have downloaded Linux version of AWS CLI only to get the following

    curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"

    unzip awscliv2.zip
    sudo ./aws/install
    ./aws/install: /root/aws/dist/aws: 0403-006 Execute permission denied.
    Usage: ln [-f|n] [-s] src [target]
       or: ln [-f|n] [-s] src1 ... srcN directory
    root@drum /root >


    So, can you help me to overcome this? Or do I need to download opensource code? And if so where can I find it?



    ------------------------------
    Jumaane Salim
    ------------------------------


  • 2.  RE: Installing AWS CLI on AIX 7.2

    Posted Fri April 25, 2025 08:51 AM

    Hi Jumaane,

    This reply may be too late for you, but I first installed python3.9 by downloading the following packages from Index of /aix/freeSoftware/aixtoolbox/RPMS.

    bash-5.2.21-1.aix7.1.ppc.rpm
    bzip2-1.0.8-2.aix6.1.ppc.rpm
    expat-2.5.0-1.aix7.1.ppc.rpm
    gcc8-8.3.0-4.aix6.1.ppc.rpm
    gcc8-cplusplus-8.3.0-4.aix7.1.ppc.rpm
    gdbm-1.23-1.aix7.1.ppc.rpm
    gettext-0.21-2.aix7.1.ppc.rpm
    glib2-2.56.1-3.aix6.1.ppc.rpm
    libffi-3.4.2-1.aix7.1.ppc.rpm
    libgcc10-10.3.0-6.aix7.1.ppc.rpm
    libgcc8-8.3.0-4.aix6.1.ppc.orig
    libgomp8-8.3.0-4.aix7.1.ppc.rpm
    libiconv-1.17-1.aix7.1.ppc.rpm
    libstdcplusplus8-8.3.0-4.aix7.1.ppc.rpm
    libunistring-0.9.9-2.aix6.1.ppc.rpm
    libxml2-2.9.9-1.aix6.1.ppc.rpm
    ncurses-6.3-1.aix7.1.ppc.rpm
    python3.9-3.9.18-1.aix7.1.ppc.rpm
    readline-8.2-1.aix7.1.ppc.rpm
    sed-4.9-1.aix7.1.ppc.rpm
    sqlite-3.39.3-1.aix7.1.ppc.rpm
    xz-libs-5.2.5-1.aix6.1.ppc.rpm
    zlib-1.2.13-1.aix7.1.ppc.rpm

    I ran this command from the directory containing the rpm files: rpm --nodeps -Uvh *.rpm

    Then, I ran the following commands to install AWS CLI

    python3.9 -m ensurepip
    python3.9 -m pip install awscli --upgrade --user

    If you get an error related to SSL, set these variables first:

    export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/opt/freeware/lib

    export LIBPATH=/usr/lib:/usr/local/lib:/opt/freeware/lib

    To configure AWS CLI:

    /.local/bin/aws configure

    Enter the AWS Access Key ID
    Enter the AWS Secret Access Key
    Default Region: <Press Enter, leave it blank>
    Output format: <Press Enter, leave it blank>

    To upload a file to S3:
    aws s3 cp  source-path-of-file-to-be-copied    destination-where-file-to-be-uploaded

    To upload a folder containing multiple files recursively:
    aws s3 cp /path/to/file/in/your/system  s3://the-destination-s3-bucket-url/ --recursive 



    ------------------------------
    Kevin Monday
    ------------------------------