English

Error: 'exec(): 0509-036 Cannot load program' when starting a remote job

Error Message

When I start a remote job on my IBM AIX Server, it fails. If I review
$ARCHOME/gpserver/rqmgr.err on the server I see the following message.

exec(): 0509-036 Cannot load program /hdisk3fs/arcexe80/bin/arcsrvr because of the following errors:
0509-022 Cannot load library libgpsrvr80.so.
0509-026 System error: A file or directory in the path name does not exist.

Cause

The geoprocessing executables are dynamically linked to the appropriate
libraries. Because they are SETUID programs, the server cannot
find the libraries required.

Solution or Workaround

Create symbolic links to the libraries in /usr/lib.

Code:
% su -
# cd /usr/lib
# export ARCHOME=/apps/esri/arcexe80
# ln -s $ARCHOME/lib/libgpsrvr80.so libgpsrvr80.so
# ln -s $ARCHOME/lib/libaiarcapi.so libaiarcapi.so
# ln -s $ARCHOME/lib/libaiaml.so libaiaml.so
# ln -s $ARCHOME/lib/libaieraster.so libaieraster.so
# ln -s $ARCHOME/lib/libergxlib.so libergxlib.so
# ln -s $ARCHOME/lib/libgnutimlib.so libgnutimlib.so
# ln -s $ARCHOME/lib/libaiaclib.so libaiaclib.so
# ln -s $ARCHOME/lib/libaicoveng.so libaicoveng.so
# ln -s $ARCHOME/lib/libsde80.so libsde80.so
# ln -s $ARCHOME/lib/libsg80.so libsg80.so
# ln -s $ARCHOME/lib/libpe80.so libpe80.so
# ln -s $ARCHOME/lib/libaiarclib.so libaiarclib.so
# ln -s $ARCHOME/lib/libaistakio.so libaistakio.so
# ln -s $ARCHOME/lib/libaigridio.so libaigridio.so
# ln -s $ARCHOME/lib/libaiprject.so libaiprject.so
# ln -s $ARCHOME/lib/libaishape.so libaishape.so
# ln -s $ARCHOME/lib/libaifeat.so libaifeat.so
# ln -s $ARCHOME/lib/libaibase.so libaibase.so
# ln -s $ARCHOME/lib/libxlf90.a libxlf90.a
# ln -s $ARCHOME/lib/libxlf.a libxlf.a
# ln -s $ARCHOME/lib/libxlf90_r.a libxlf90_r.a


All links should be owned by the ROOT user.