Quite often we have people complaining about the errors
thrown by Informatica pmrep and pmcmd commands and that they are able to
connect to the Informatica repository from the client tools but unable to do so
from the terminal or cmd prompt. The solution to this is pretty simple though. All
that you need to blame is the environmental variables that have been set [or
unset] in the machine.
Problem
Upon calling pmrep
and pmcmd from the cmd prompt or
terminal, you may end up receiving the following error.
$ pmrep
Could not load program
pmrep:
Dependent module libACE.so could not be
loaded.
Could not load module
libACE.so.
System error: No such
file or directory
$ pmcmd
Could not load program
pmcmd:
Dependent module libpmasrt.a could not
be loaded.
Could not load module
libpmasrt.a.
System error: No such
file or directory
Solution
Unix based machines
1. Check if the LIBPATH variable is set correctly.
The LIBPATH env variable must include “<INFA_HOME>/server/bin” path.
(You may check this by typing echo $LIBPATH in terminal window)
The LIBPATH env variable must include “<INFA_HOME>/server/bin” path.
(You may check this by typing echo $LIBPATH in terminal window)
2. If the variable doesn’t include the above said path, set it in ‘.bash_profile’ [or ‘.profile’ whichever is applicable based on the operating system]
3. Ensure PATH variable includes LIBPATH
The PATH variable should include either LIBPATH or “<INFA_HOME>/server/bin” path.
The PATH variable should include either LIBPATH or “<INFA_HOME>/server/bin” path.
4. Save and source the file.
Type “source .bash_profile” [or “. .profile”]
Type “source .bash_profile” [or “. .profile”]
5. Now type pmrep or pmcmd, it has to work.
Windows Machines
1. Check if the LIBPATH variable is set correctly.
The LIBPATH env variable must include “<INFA_HOME>/server/bin” path.
The LIBPATH env variable must include “<INFA_HOME>/server/bin” path.
Or echo %LIBPATH%
2. If the variable doesn’t include the path, set it as shown below.
3. Add “<INFA_HOME>/server/bin” to PATH variable as well if it’s not present already.
4. Now type pmrep or pmcmd and get going!
No comments:
Post a Comment