Problem
Runtime error message of the type shown in the box below:
error while loading shared libraries: ... cannot open shared object file: No such file or directory
Solution
In order to use the available libraries dynamically, you have to add the library directory to the path list of the environment variable $LD_LIBRARY_PATH
before the execution of your job starts. E.g. for /user/lib64
you would export it as below:
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib64 (bash) set LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/usr/lib64 (csh)
Please note that the Cray compiler wrappers link dynamically by default, unless you use the option -static
or set export CRAY_LINK_TYPE=static
.