exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
0509-152 Member shr4.o is not found in archive
0509-022 Cannot load module rpm.
0509-150 Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.
0509-022 Cannot load module .
I tried to install GCC in Aix7.1 while installing related rpm and dependencies...
I Got below error
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
0509-152 Member shr4.o is not found in archive
0509-022 Cannot load module rpm.
0509-150 Dependent module /opt/freeware/lib/libintl.a(libintl.so.1) could not be loaded.
0509-022 Cannot load module .
I came to know that rpm got corrupted and senior suggested to install rpm.rte with compatible version.
However, to help you a bit further - we need to understand why this error is occuring. Likely you have replaced the libiconv.a provided by rpm.rte by something provided by an rpm (e.g., a gnu iconv rpm).
1) use ldd /usr/bin/rpm and post the output.
2) more searching: find / -name libiconv.a -ls