NERSCPowering Scientific Discovery Since 1974

Resolved: "error while loading shared libraries:" with serial codes on login nodes

December 13, 2013 by Helen He


Dynamic executables built with compiler wrappers running directly on the external login nodes are getting the following error message:

% ftn -dynamic -o testf testf.f
% ./testf
./testf: error while loading shared libraries: cannot open shared object file: No such file or directory


Please use the native compilers such as pgf90, ifort, etc instead of the Cray compiler wrappers ftn, cc, or CC to build the executable. It will then run successfully on the external login nodes.

% pgf90 -o testf testf.f
% file testf
testf: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), not stripped
% ./testf
Test ok

Dynamic executables compiled with compiler wrappers could also run successfully on the MOM nodes (via "qsub -I -V -lmppwidth=24 -q interactive").  However, only short jobs (a few minutes) are appropriate to run on MOM node since these are shared resources.

% qsub -I -V -q interactive -lmppwidth=24
... wait for a new session ...

% ftn -dynamic -o testf testf.f
% ./testf
Test ok


 This problem has been resolved since the CLE4.2UP02 upgrade on 2/11/2014.