Clear Filters
Clear Filters

Error while opening shared libraries in Matlab 2020b

35 views (last 30 days)
Hello everyone!
I have been doing some calculation in Matlab for the past few weeks on my normal workstation but now I am starting to use a Linux cluster in order to take advantage of a bigger number of processors (meaning that I am using the Parallel Computing Toolbox).
The code I wrote works fine on my Windows machine but when I try to run it on the Linux cluster I get the following error:
Error using integralCalc/iterateScalarValued (line 310)
BLAS loading error:
libiomp5.so: cannot open shared object file: No such file or directory
I tried reading some answers to similar problems but unfortunately I still haven't understood how to solve this issue (I don't know much about linux, I am just an electrical engineer, sorry).
The error reported above appears within a "parfor" cycle when I try to use the Matlab's function "integral3". I checked and it seems that the problem has nothing to do with the Parallelization because it appears also when repleacing the "parfor" with a simple "for". I did some other investigations and the same error appears even when trying other codes in which I use the "trapz" function or when I tryt to "Rotate 3D" a figure made using plot3.
Can anyone tell me what I should do about this ??
  2 Comments
Edric Ellis
Edric Ellis on 24 Jun 2022
That file ("libiomp5.so") should be installed as part of a standard MATLAB installation. It should be found in <matlab>/sys/os/glnxa64. The fact that it cannot be found suggests that you may need to reinstall MATLAB. I would suggest contacting MathWorks support for help with this.
Gabriele Colombo
Gabriele Colombo on 24 Jun 2022
Thank you for your answer! I followed your suggestion and contacted MathWorks: I will post their solution to the problem when I get it. If in the meantime anyone still knows how to help it would be very much appreciated!

Sign in to comment.

Answers (1)

Dinesh
Dinesh on 29 Sep 2023
Edited: Dinesh on 29 Sep 2023
Hi Gabriele,
I understand that you are trying to run your code in MATLAB which is installed in Linux and you are facing an error die to this. The libiomp5.so file is installed as a part of standard MATLAB installation.
There can be multiple reasons for this error. Two major ones being
  1. Bad or incomplete file installation.
  2. You are not loading the appropriate module. (generally a conflict)
To identify bad or incomplete file installation please navigate to <matlab>/sys/os/glnx64 and open Linux terminal in that directory and type
md5sum libiomp5.so
The output of the command for this should be '044a12631073210ba5dc5e226d6744bd libigmp5.so'.
If you are output is different or file is not found then you will have to reinstall MATLAB.
If the output is similar then the issue is probably with not being able to load the appropriate module. Please make sure there are no module load conflicts for this module.
Hope this helps.
Best Regards,
Dinesh Reddy Gatla.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!