Hello Ayappan, we tried the above command. Please find the output below.
Original Message:
Sent: Mon April 29, 2024 09:04 AM
From: Ayappan P
Subject: Not able to run unzip command with the user, however able to run with root
Do you have libiconv rpm installed ? It should provide this file "/opt/freeware/lib/libiconv.a"
# ar -tv /opt/freeware/lib/libiconv.a
rwxr-xr-x 203/1 1195058 Jun 02 04:18 2022 libiconv.so.2
rwxr-x--- 0/0 234378 May 26 08:32 2023 shr4.o
rwxr-x--- 0/0 234628 May 26 08:32 2023 shr.o
If it is present and still this issue occurs, then again LIBPATH is set through some other means. Try < LIBPATH="" dnf list >
------------------------------
Ayappan P
Original Message:
Sent: Mon April 29, 2024 07:33 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Hello Ayappan,
I have comment the LIBPATH line and now I am getting this error. It seems some library is missing. Any thought please?
infadmd@infjca250dc:/home/infadmd$ dnf list
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, in <module>
import dnf.base
File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
Member libiconv.so.2 is not found in archive
Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
Dependent module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so could not be loaded.
------------------------------
Manoj Kumar
Original Message:
Sent: Mon April 29, 2024 05:03 AM
From: Ayappan P
Subject: Not able to run unzip command with the user, however able to run with root
You can remove/comment LIBPATH lines from ".profile" file.
------------------------------
Ayappan P
Original Message:
Sent: Mon April 29, 2024 04:50 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Thank you Ayappan.
How can we unset LIBPATH or completely remove the LIBPATH from user's profile?
------------------------------
Manoj Kumar
Original Message:
Sent: Fri April 26, 2024 08:48 AM
From: Ayappan P
Subject: Not able to run unzip command with the user, however able to run with root
With LIBPATH having "/software/informatica/105/server/bin" and that path having Toolbox similar libraries, I don't see any good solution to resolve this. Toolbox applications will not work. If Toolbox applications are used only for some admin purposes, then probably one can unset LIBPATH in the current terminal and run those applications.
------------------------------
Ayappan P
Original Message:
Sent: Fri April 26, 2024 05:10 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Hello Ayappan,
I got the update from app team and they said they need those library, however they will also check with their vendor.
We updated the /opt/freeware/lib64 path under LIBPATH variable, please see below and now it is giving below error.
infadmd@infjca250dc:/home/infadmd$ dnf list
Could not load program /opt/freeware/libexec/python3.9_32:
Dependent module /opt/freeware/lib64/libpython3.9.a(libpython3.9.so) could not be loaded.
The module has an invalid magic number.
export LIBPATH=/software/informatica/105/server/bin:/usr/mqm/lib64:/software/informatica/105/ODBC7.1/lib:$TERADATA_HOME/odbc_64/lib:/usr/lib:$TERADATA_HOME/lib64:$ORACLE_HOME/lib:/dinfadmd/dinfadmd/sqllib/lib64:$ATHANOR_HOME/lib:$ATHANOR_HOME/bin:$ATHANOR_HOME/av/QAS:$ATHANOR_HOME/repository/bin:/usr/java8_64/lib:/usr/java8_64/bin:/usr/lib:/software/informatica/105/DataTransformation/bin:/usr/java8_64/jre/lib/ppc64/j9vm:/usr/java8_64/jre/lib/ppc64:$PWX_HOME:/opt/freeware/lib64
We are getting following error.
infadmd@server:/home/infadmd$ dnf list
Could not load program /opt/freeware/libexec/python3.9_32:
Dependent module /opt/freeware/lib64/libpython3.9.a(libpython3.9.so) could not be loaded.
The module has an invalid magic number.
Would you please help.
I also have two question
1) If they wanted to use the same path /software/informatica/105* path for the library, then how can we fix this issue?
2) If they say that they don't want to use that /software/informatica/105* path library, then how can we fix this issue.
------------------------------
Manoj Kumar
Original Message:
Sent: Mon April 22, 2024 08:09 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Hi Ayappan,
First I will check with them about those libraries and will get back to you.
------------------------------
Manoj Kumar
Original Message:
Sent: Mon April 22, 2024 07:47 AM
From: Ayappan P
Subject: Not able to run unzip command with the user, however able to run with root
If they are not using that, then remove the LIBPATH from .profile.
If they are using it, then what libraries are really required for their applications ? Is it possible to remove Toolbox similar libraries from that location?
------------------------------
Ayappan P
Original Message:
Sent: Mon April 22, 2024 07:42 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Hi Ayappan,
This library/path belongs to informatica app team. I am not sure whether they are using it or not. I will check with them. If they say they are not using how can we get rid of that? or if they say they are using it how can we fix the issue.
------------------------------
Manoj Kumar
Original Message:
Sent: Mon April 22, 2024 07:23 AM
From: Ayappan P
Subject: Not able to run unzip command with the user, however able to run with root
What is the purpose of having "/software/informatica/105/server/bin" in the LIBPATH ? Is there any custom applications in the system which requires libraries from this directory ? With Toolbox similar libraries present this location, these kind of issues can arise. In this case, it's the gcc library libgcc_s.a. Is it really required to be here ?
------------------------------
Ayappan P
Original Message:
Sent: Mon April 22, 2024 06:55 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Thank you Ayappan for the update. Really appreciate the fast response.
Actually I have configured DNF on AIX recently and need to fix that thing. How can we fix that? Please finds the logs below from the servers. Let me know what changes we will have to made.
infadmd@edimna202d:/home/infadmd$ file /opt/freeware/bin/unzip
/opt/freeware/bin/unzip: symbolic link to unzip_64
infadmd@edimna202d:/home/infadmd$ cd /opt/freeware/lib
infadmd@edimna202d:/opt/freeware/lib$ ls -l|grep -i libbz2.so.1
infadmd@edimna202d:/opt/freeware/lib$ ls -l|grep -i libgcc_s.a.
lrwxrwxrwx 1 root system 40 Jul 28 2023 libgcc_s.a -> gcc/powerpc-ibm-aix7.2.0.0/10/libgcc_s.a
infadmd@edimna202d:/home/infadmd$ cat .profile|grep -i /software/informatica/105/DataTransformation
. /software/informatica/105/DataTransformation/setEnv.sh
#export LIBPATH=/usr/mqm/lib64:$ORACLE_HOME/lib:/software/informatica/105/server/bin:/dediadmd/dediadmd/sqllib/lib64:/software/informatica/105/ODBC7.1/lib:/usr/java8_64/jre/lib:/usr/lib:/software/informatica/hipaaValidation/XEngine/bin:/software/informatica/105/DataTransformation/bin
export LIBPATH=/software/informatica/105/server/bin:/usr/mqm/lib64:$ORACLE_HOME/lib:/dediadmd/dediadmd/sqllib/lib64:/software/informatica/105/ODBC7.1/lib:/usr/java8_64/jre/lib:/usr/lib:/software/informatica/hipaaValidation/XEngine/bin:/software/informatica/105/DataTransformation/bin
------------------------------
Manoj Kumar
Original Message:
Sent: Mon April 22, 2024 05:32 AM
From: Ayappan P
Subject: Not able to run unzip command with the user, however able to run with root
Probably you have "/software/informatica/105/DataTransformation/bin" set in your LIBPATH of non-root account. Check whether the unzip binary is 64bit or 32bit ( file command will do that). If it is 64bit, then it loads 64bit libbz2.so.1 which in turn requires 64bit shr.o inside libgcc_s.a. ( ar -X64 -tv libgcc_s.a). If 64bit shr.o not available, then unzip will not work with this LIBPATH set. ( same logic if unzip is 32bit).
------------------------------
Ayappan P
Original Message:
Sent: Mon April 22, 2024 04:55 AM
From: Manoj Kumar
Subject: Not able to run unzip command with the user, however able to run with root
Hi Team,
I am able to run the unzip command with root user but not able to run it with other account. Please find the below error and suggest. Early response would be highly appreciated. Let me know if you need additional logs for this.
infadmd@server:/software/infa_shared/powercenter/Temp$ unzip file.zip
Could not load program unzip:
Could not load module /opt/freeware/lib/libbz2.a(libbz2.so.1).
Dependent module /software/informatica/105/DataTransformation/bin/libgcc_s.a(shr.o) could not be loaded.
The module has an invalid magic number.
Could not load module unzip.
Dependent module /opt/freeware/lib/libbz2.a(libbz2.so.1) could not be loaded.
------------------------------
Manoj Kumar
------------------------------