Why do I receive "MATLAB: binder.loadFailure; LAPACK load error"

2 views (last 30 days)
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"

Answers (1)

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

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!