Error While Loading Shared Libraries: Libiomp5. So: Cannot Open Shared Object File: No Such File or Directory
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...
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
3 Answers
In a HPC, I got the same message if I do not run module load intel firstly.
Another ref:
There is a dependency on the libiomp5.so module. Check to see if your machine already has this module installed by running $find / -name libiomp5.so and if the module is not found, then install it and put it in the modules folder that your program is looking in.
With Intel compiler you should use -qopenmp.