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

2

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest