IBM Support

Managing LIBPATH and LD_LIBRARY_PATH environment variables for LSF jobs on AIX5.3

Troubleshooting


Problem

Managing LIBPATH and LD_LIBRARY_PATH environment variables for LSF jobs on AIX5.3

Resolving The Problem

AIX 5.1 uses an environment variable LIBPATH when loading shared libraries. AIX 5.3 uses LD_LIBRARY_PATH instead. For backward compatibility, AIX5.3 still uses LIBPATH if it is defined.
LSF has a common distribution for AIX 5.1 and 5.3 and always appends path to the LSF libraries to the LIBPATH for running jobs.This causes problems for the jobs on AIX 5.3, if these jobs rely on the LD_LIBRARY_PATH being set and LIBPATH being not set. Since the LIBPATH set by the LSF does not include the path set in the LD_LIBRARY_PATH, the job fails.

The solution is to define LIBPATH and LD_LIBRARY_PATH variables to be the same in a job submission environment.
For example, if the login shell is a C-shell, add the following line to the .cshrc file after the definition of the LD_LIBRARY_PATH:
setenv LIBPATH $LD_LIBRARY_PATH

[{"Product":{"code":"SSWRJV","label":"IBM Spectrum LSF"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSWRJV","label":"IBM Spectrum LSF"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":null,"Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
23 June 2018

UID

isg3T1015835