Why do I receive "MATLAB: binder.loadFailure; LAPACK load error"
2 views (last 30 days)
Show older comments
The program written by App Designer has no error when running in MATLAB; Compile it, and at run time "MATLAB: binder.loadFailure; LAPACK load error"
0 Comments
Answers (1)
Aniket
on 4 Oct 2024
The error you are encountering seems to be because of multiple factors revolving around some missing/corrupt files, specially 'mkl.dll' file present at "matlab/bin/{glnxa64/win64/maci64}"
Firstly ensure that the OS you are using is officially supported by MathWorks. Using Virtual Machines/Emulators to run MATLAB can cause such issues.
To start with issue resolution, make sure the same versions of 'BLAS' & LAPACK libraries are used. You can check this by running below commands in MATLAB command prompt.
>> version -blas
>> version -lapack
If they are same, proceed with setting the environment variables for these libraries. To do so, you should set
BLAS_VERSION = mkl.dll
LAPACK_VERSION = mkl.dll
in Windows environment variables (Do not set to entire path like "C:\Program Files\MATLAB\R2021b\bin\win64\mkl.dll" since spaces in path can cause issues). If using Linux, you can use the 'export' command.
Restart MATLAB and your issue should be resolved.
You may also ensure that some Windows .dll file are up to date as mentioned in this MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/375270-why-does-my-matlab-compiler-standalone-application-fail-to-start-with-a-the-operating-system-cannot
If none of these steps work, the issue might be related to the installation. You might want to reinstall MATLAB, preferably to newer version R2024b or contact MathWorks support team.
0 Comments
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!