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
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