AIX Open Source

 View Only

 Rpm packages installation from AIX toolbox.

Prem Ranjan's profile image
Prem Ranjan posted Fri May 02, 2025 06:29 AM

Hello, 

We are facing below issues while installing rpm packages on our AIX server from AIX toolbox:-

# rpm -ivh glib2-2.81.0-1.aix7.1.ppc.rpm
error: Failed dependencies:
        gettext >= 0.21 is needed by glib2-2.81.0-1.ppc
        libffi >= 3.4.2 is needed by glib2-2.81.0-1.ppc
        libffi.a(libffi.so.8) is needed by glib2-2.81.0-1.ppc
        libiconv >= 1.17 is needed by glib2-2.81.0-1.ppc
        libpcre2-8.a(libpcre2-8.so.0) is needed by glib2-2.81.0-1.ppc
        pcre2 >= 10.40 is needed by glib2-2.81.0-1.ppc
# ls -ltr
total 216224
-rw-r--r--    1 vda.prem staff      75909120 Nov 28 11:28 openssl-1.1.2.2400.tar
-rw-r--r--    1 vda.prem staff      16963758 Dec 06 15:31 glib2-2.81.0-1.aix7.1.ppc.rpm
drwxr-xr-x    2 root     system          256 May 02 14:40 openssl-1.1.2.2400
-rw-r--r--    1 vda.prem staff         74460 May 02 14:43 libffi-3.4.4-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1608833 May 02 14:46 pcre2-10.45-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1718553 May 02 14:54 libiconv-1.17-1.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff      14412858 May 02 14:54 gettext-0.21-2.aix7.1.ppc.rpm
# rmp -ivh gettext-0.21-2.aix7.1.ppc.rpm
ksh: rmp:  not found.
# rpm -ivh gettext-0.21-2.aix7.1.ppc.rpm
error: Failed dependencies:
        glib2 >= 2.56.1 is needed by gettext-0.21-2.ppc
        libgomp >= 8.3.0 is needed by gettext-0.21-2.ppc
        libgomp.a(libgomp.so.1) is needed by gettext-0.21-2.ppc
        libtextstyle = 0.21-2 is needed by gettext-0.21-2.ppc
# pwd
/tmp/openssl
# 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
# rpm -ivh pcre2-10.45-2.aix7.1.ppc.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:pcre2-10.45-2                    ################################# [100%]
# rpm -ivh libffi-3.4.4-2.aix7.1.ppc.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
        file /opt/freeware/lib/libffi.a from install of libffi-3.4.4-2.ppc conflicts with file from package libffi-3.2.1-2.ppc
# rpm -ivh gettext-0.21-2.aix7.1.ppc.rpm
error: Failed dependencies:
        glib2 >= 2.56.1 is needed by gettext-0.21-2.ppc
        libgomp >= 8.3.0 is needed by gettext-0.21-2.ppc
        libgomp.a(libgomp.so.1) is needed by gettext-0.21-2.ppc
        libtextstyle = 0.21-2 is needed by gettext-0.21-2.ppc
# ls -ltr
total 216208
-rw-r--r--    1 vda.prem staff      75909120 Nov 28 11:28 openssl-1.1.2.2400.tar
-rw-r--r--    1 vda.prem staff      16963758 Dec 06 15:31 glib2-2.81.0-1.aix7.1.ppc.rpm
drwxr-xr-x    2 root     system          256 May 02 14:40 openssl-1.1.2.2400
-rw-r--r--    1 vda.prem staff         74460 May 02 14:43 libffi-3.4.4-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1608833 May 02 14:46 pcre2-10.45-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1718553 May 02 14:54 libiconv-1.17-1.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff      14412858 May 02 14:54 gettext-0.21-2.aix7.1.ppc.rpm
# rpm -ivh glib2-2.81.0-1.aix7.1.ppc.rpm
error: Failed dependencies:
        gettext >= 0.21 is needed by glib2-2.81.0-1.ppc
        libffi >= 3.4.2 is needed by glib2-2.81.0-1.ppc
        libffi.a(libffi.so.8) is needed by glib2-2.81.0-1.ppc
        libiconv >= 1.17 is needed by glib2-2.81.0-1.ppc
# rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm libffi-3.4.4-2.aix7.1.ppc.rpm gettext-0.21-2.aix7.1.ppc.rpm glib2-2.81.0-1.aix7.1.ppc.rpm
error: Failed dependencies:
        libgomp >= 8.3.0 is needed by gettext-0.21-2.ppc
        libgomp.a(libgomp.so.1) is needed by gettext-0.21-2.ppc
        libtextstyle = 0.21-2 is needed by gettext-0.21-2.ppc
# ls -ltr
total 218464
-rw-r--r--    1 vda.prem staff      75909120 Nov 28 11:28 openssl-1.1.2.2400.tar
-rw-r--r--    1 vda.prem staff      16963758 Dec 06 15:31 glib2-2.81.0-1.aix7.1.ppc.rpm
drwxr-xr-x    2 root     system          256 May 02 14:40 openssl-1.1.2.2400
-rw-r--r--    1 vda.prem staff         74460 May 02 14:43 libffi-3.4.4-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1608833 May 02 14:46 pcre2-10.45-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1718553 May 02 14:54 libiconv-1.17-1.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff      14412858 May 02 14:54 gettext-0.21-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1133702 May 02 15:03 libtextstyle-0.21-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff         14445 May 02 15:05 libgomp-10-2.aix7.2.ppc.rpm
# rpm -ivh libgomp-8.3.0-1.aix6.1.ppc.rpm libtextstyle-0.21-2.aix7.1.ppc.rpm
error: open of libgomp-8.3.0-1.aix6.1.ppc.rpm failed: A file or directory in the path name does not exist.
# pwd
/tmp/openssl
# rpm -ivh libgomp-10-2.aix7.2.ppc.rpm libtextstyle-0.21-2.aix7.1.ppc.rpm
error: Failed dependencies:
        libgcc = 1:10-2 is needed by libgomp-1:10-2.ppc
        libgomp10 is needed by libgomp-1:10-2.ppc
#  rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm libffi-3.4.4-2.aix7.1.ppc.rpm gettext-0.21-2.aix7.1.ppc.rpm glib2-2.81.0-1.aix7.1.ppc.rpm
error: Failed dependencies:
        libgomp >= 8.3.0 is needed by gettext-0.21-2.ppc
        libgomp.a(libgomp.so.1) is needed by gettext-0.21-2.ppc
        libtextstyle = 0.21-2 is needed by gettext-0.21-2.ppc
# rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm libffi-3.4.4-2.aix7.1.ppc.rpm libgomp-8.3.0-1.aix7.1.ppc.rpm libtextstyle-0.21-2.aix7.1.ppc.rpm gettext-0.21-2.aix7.1.ppc.rpm glib2-2.81.0-1.aix7.1.ppc.rpm
error: open of libgomp-8.3.0-1.aix7.1.ppc.rpm failed: A file or directory in the path name does not exist.
# ls -ltr
total 218456
-rw-r--r--    1 vda.prem staff      75909120 Nov 28 11:28 openssl-1.1.2.2400.tar
-rw-r--r--    1 vda.prem staff      16963758 Dec 06 15:31 glib2-2.81.0-1.aix7.1.ppc.rpm
drwxr-xr-x    2 root     system          256 May 02 14:40 openssl-1.1.2.2400
-rw-r--r--    1 vda.prem staff         74460 May 02 14:43 libffi-3.4.4-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1608833 May 02 14:46 pcre2-10.45-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1718553 May 02 14:54 libiconv-1.17-1.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff      14412858 May 02 14:54 gettext-0.21-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff       1133702 May 02 15:03 libtextstyle-0.21-2.aix7.1.ppc.rpm
-rw-r--r--    1 vda.prem staff         14129 May 02 15:08 libgomp-10-2.aix7.1.ppc.rpm
# rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm libffi-3.4.4-2.aix7.1.ppc.rpm libgomp-8.3.0-1.aix7.1.ppc.rpm libtextstyle-0.21-2.aix7.1.ppc.rpm gettext-0.21-2.aix7.1.ppc.rpm glib2-2.81.0-1.aix7.1.ppc.rpm
error: open of libgomp-8.3.0-1.aix7.1.ppc.rpm failed: A file or directory in the path name does not exist.
#  rpm -ivh libiconv-1.17-1.aix7.1.ppc.rpm libffi-3.4.4-2.aix7.1.ppc.rpm libgomp-10-2.aix7.1.ppc.rpm libtextstyle-0.21-2.aix7.1.ppc.rpm gettext-0.21-2.aix7.1.ppc.rpm
error: Failed dependencies:
        AIX-rpm < 7.2.0.0 is needed by libgomp-1:10-2.ppc
        libgcc = 1:10-2 is needed by libgomp-1:10-2.ppc
        libgomp10 is needed by libgomp-1:10-2.ppc
        glib2 >= 2.56.1 is needed by gettext-0.21-2.ppc
        libgomp.a(libgomp.so.1) is needed by gettext-0.21-2.ppc
# rpm -ivh libgcc-8.3.0-1.aix7.1.ppc.rpm libgomp-8.3.0-1.aix7.1.ppc.rpm libiconv-1.17-1.aix7.1.ppc.rpm libffi-3.4.4-2.aix7.1.ppc.rpm libtextstyle-0.21-2.aix7.1.ppc.rpm gettext-0.21-2.aix7.1.ppc.rpm glib2-2.81.0-1.aix7.1.ppc.rpm
error: open of libgcc-8.3.0-1.aix7.1.ppc.rpm failed: A file or directory in the path name does not exist.
error: open of libgomp-8.3.0-1.aix7.1.ppc.rpm failed: A file or directory in the path name does not exist.

Kindly help us.

Regards,

Prem

Sumitra Dawn's profile image
Sumitra Dawn

Hello Prem,

It appears that the required RPM packages may not have been installed correctly.
I recommend using dnf to install the package.

dnf install glib2

This will automatically handle and install any dependencies along with glib2.



Thanks & Regards
Sumitra

Prem Ranjan's profile image
Prem Ranjan

Hi Sumitra,

This is an AIX server, we dont have yum/dnf over here:-

Do we need to install yum/dnf first?

Is internet required on this server?

Regards,

Prem

Ranjit Ranjan's profile image
Ranjit Ranjan

Hi, 
Check the blog https://community.ibm.com/community/user/blogs/sangamesh-mallayya1/2021/05/28/dnf-is-now-available-on-aix-toolbox for configuring dnf .

Yes. you need internet connectivity for this.

Thanks
Ranjit

Prem Ranjan's profile image
Prem Ranjan

Hi Team,

Is there any link to download the package manually and install on server , as we are not having internet on server?

Regards,

Prem

Sumitra Dawn's profile image
Sumitra Dawn

You can download the bundle manually from https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/ezinstall/ppc/
Extract the tar file and execute the install_dnf.sh script in the same manner as the dnf_aixtoolbox.sh script.

Prem Ranjan's profile image
Prem Ranjan

Hi Sumitra,

Thanks for your response, I am working on your suggestions, will get back here if stuck again.

Regards,

Prem

Prem Ranjan's profile image
Prem Ranjan

Hi Team,

I am getting below error now:-

Pre-installation Failure/Warning Summary
----------------------------------------
Name                      Level           Pre-installation Failure/Warning
-------------------------------------------------------------------------------
rpm.rte                   4.15.1.1011     Already installed

Checking whether any of the rpms from dnf_bundle are already installed...
Takes couple of minutes to process.

ca-certificates-2023.2.60-0 will be installed
dnf-4.2.17-32_4 will be installed
dnf-automatic-4.2.17-32_4 will be installed
dnf-data-4.2.17-32_4 will be installed
glib2-2.48.1-2.ppc will be updated to glib2-2.83.2-1
libcomps-0.1.15-32_1 will be installed
libdnf-0.39.1-32_3 will be installed
libmodulemd-1.5.2-32_2 will be installed
librepo-1.11.0-32_2 will be installed
libsmartcols-2.34-32_1 will be installed
libsolv-0.7.9-32_3 will be installed
libzstd-1.4.4-32_1 will be installed
p11-kit-0.23.22-0 will be installed
p11-kit-tools-0.23.22-0 will be installed
python3-3.9.16-0 will be installed
python3-dnf-4.2.17-32_4 will be installed
python3-gpg-1.13.1-32_3 will be installed
python3-hawkey-0.39.1-32_3 will be installed
python3-libcomps-0.1.15-32_1 will be installed
python3-libdnf-0.39.1-32_3 will be installed
python3-librepo-1.11.0-32_2 will be installed
python3.9-3.9.16-0 will be installed
python3.9-dnf-4.2.17-32_4 will be installed
python3.9-gpg-1.13.1-32_3 will be installed
python3.9-hawkey-0.39.1-32_3 will be installed
python3.9-libcomps-0.1.15-32_1 will be installed
python3.9-libdnf-0.39.1-32_3 will be installed
python3.9-librepo-1.11.0-32_2 will be installed
rpm-python3-4.15.1-32_2 will be installed
rpm-python3.9-4.15.1-32_2 will be installed
zchunk-libs-1.1.4-32_2 will be installed

Installing the packages...

error: Failed dependencies:
        gettext >= 0.21 is needed by glib2-2.83.2-1.ppc
        libffi >= 3.4.2 is needed by glib2-2.83.2-1.ppc
        libffi.a(libffi.so.8) is needed by glib2-2.83.2-1.ppc
        libiconv >= 1.17 is needed by glib2-2.83.2-1.ppc
        libpcre2-8.a(libpcre2-8.so.0) is needed by glib2-2.83.2-1.ppc
        pcre2 >= 10.40 is needed by glib2-2.83.2-1.ppc

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.

/dev/hd10opt       7.00      0.35      6.65    6% /opt

Kindly help

Regards,

Prem

Prem Ranjan's profile image
Prem Ranjan

HEllo everyone,

Please help me with below update of error.:-

Pre-installation Failure/Warning Summary
----------------------------------------
Name                      Level           Pre-installation Failure/Warning
-------------------------------------------------------------------------------
rpm.rte                   4.15.1.1011     Already installed

Checking whether any of the rpms from dnf_bundle are already installed...
Takes couple of minutes to process.

ca-certificates-2023.2.60-0 will be installed
dnf-4.2.17-32_4 will be installed
dnf-automatic-4.2.17-32_4 will be installed
dnf-data-4.2.17-32_4 will be installed
glib2-2.48.1-2.ppc will be updated to glib2-2.83.2-1
libcomps-0.1.15-32_1 will be installed
libdnf-0.39.1-32_3 will be installed
libmodulemd-1.5.2-32_2 will be installed
librepo-1.11.0-32_2 will be installed
libsmartcols-2.34-32_1 will be installed
libsolv-0.7.9-32_3 will be installed
libzstd-1.4.4-32_1 will be installed
p11-kit-0.23.22-0 will be installed
p11-kit-tools-0.23.22-0 will be installed
python3-3.9.16-0 will be installed
python3-dnf-4.2.17-32_4 will be installed
python3-gpg-1.13.1-32_3 will be installed
python3-hawkey-0.39.1-32_3 will be installed
python3-libcomps-0.1.15-32_1 will be installed
python3-libdnf-0.39.1-32_3 will be installed
python3-librepo-1.11.0-32_2 will be installed
python3.9-3.9.16-0 will be installed
python3.9-dnf-4.2.17-32_4 will be installed
python3.9-gpg-1.13.1-32_3 will be installed
python3.9-hawkey-0.39.1-32_3 will be installed
python3.9-libcomps-0.1.15-32_1 will be installed
python3.9-libdnf-0.39.1-32_3 will be installed
python3.9-librepo-1.11.0-32_2 will be installed
rpm-python3-4.15.1-32_2 will be installed
rpm-python3.9-4.15.1-32_2 will be installed
zchunk-libs-1.1.4-32_2 will be installed

Installing the packages...

error: Failed dependencies:
        gettext >= 0.21 is needed by glib2-2.83.2-1.ppc
        libffi >= 3.4.2 is needed by glib2-2.83.2-1.ppc
        libffi.a(libffi.so.8) is needed by glib2-2.83.2-1.ppc
        libiconv >= 1.17 is needed by glib2-2.83.2-1.ppc
        libpcre2-8.a(libpcre2-8.so.0) is needed by glib2-2.83.2-1.ppc
        pcre2 >= 10.40 is needed by glib2-2.83.2-1.ppc

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.

Carlo Castillo's profile image
Carlo Castillo

Hey Prem,

Just to be sure you're getting ALL of the software you need from the Toolbox, you may have to download a copy of the ISO from ESS (if you have the entitlement).

Prem Ranjan's profile image
Prem Ranjan

Hi Carlo,

Yes I have the entitlement, can you help me with procedure.

Regards,

Prem

Nayan Jyoti Gogoi's profile image
Nayan Jyoti Gogoi

Hi Prem, 

First download this dnf_aixtoolbox.sh file and execute it in your system.
File can be found here https://www.ibm.com/support/pages/aix-toolbox-open-source-software-get-started
Now dnf will be present in /opt/freeware/bin

You can set the PATH or directly use dnf from /opt/freeware/bin
Run dnf update

Carlo Castillo's profile image
Carlo Castillo

Sure, my friend!

  1. Go to the IBM ESS website.
  2. Click on Software Downloads under My Entitled Software.
  3. Select the "By Machine" tab.
  4. Click on the dropdown button beside "Machine Type Model" and select the machine you are installing on.
  5. Click the "Find Serials" button beside the field.
  6. Select the target machine serial number in the "Machine Serial" field, then press the search icon.
  7. Under "Step 1: Select product", make sure "Entitled" is selected, then check the box beside the AIX version you have on your system, then click "Continue" at the bottom of the list.
  8. All of the software download entitlements for that specific serial number will appear on screen.  Since you only need the AIX Toolbox, look for a line which says "2259: AIX Toolbox for Linux APPS v06.01.00,ENU,DVD" or something similar, click on the "packages" link there, then select whether you want a TGZ version of the download or an ISO version.  Feel free to select all of them if you wish.
  9. Click "Continue" at the bottom.

The rest of the steps after this should be obvious to you at this point.  Hope this helps!

Prem Ranjan's profile image
Prem Ranjan

Hi Carlo,

Thanks for your support , Now I am able to download and update required package.

Thanks a lot for everyone for giving their valuable time and guidance.

Regards,

Prem

Carlo Castillo's profile image
Carlo Castillo

Awesome! Glad you got it all sorted out!