error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory

Kot przemierzający wszechświat picture Kot przemierzający wszechświat · Jan 13, 2015 · Viewed 15.5k times · Source

I installed Intel® Parallel Studio XE Composer Edition for C++ Linux to use OpenMP 4.0. I compile example code with

icc example.c -openmp -o example

When I run ./example I have an error:

./example: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory

Answer

Zhilong Jia picture Zhilong Jia · Jan 31, 2015

In a HPC, I got the same message if I do not run module load intel firstly.

Another ref: https://software.intel.com/en-us/forums/topic/271099