- Install Rosetta2, which allows applications compiled for Intel-based Macs to run on Apple Silicon-based Macs.
- Install ‘GRETNA’.
- Use this on MATLAB for Intel-based Macs.
To resolve the libmex.dylib missing error when running MATLAB GRETNA on MacBook Pro M1
22 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
I use MacBook Pro M1 with macOS 14.2.1.
When I run GRETNA in MATLAB_R2021b, the following error message appears:
Referenced from: <91A4AFCA-5C23-6A30-FB8C-A4C2CD09609E> /Users/mymatalbtoolbox/GRETNA-2.0.0_release/matlab_bgl/private/components_mex.mexmaci64
Reason: tried: '/Users/mymatalbtoolbox/GRETNA-2.0.0_release/matlab_bgl/private/libmex.dylib' (no such file), '/usr/local/lib/libmex.dylib' (no such file), '/usr/lib/libmex.dylib' (no such file, not in dyld cache)
Is there any solution to fix this error?
0 个评论
回答(1 个)
Rishi
2024-1-2
Hi yang,
I understand from your query that you are unable to run ‘GRETNA’ in MATLAB r2021b on a Mac with M1 chip.
This is because the MEX functions are not compatible with MATLAB for Apple Silicon. MATLAB runs on Apple Silicon Macs natively since the r2023b release. More information regarding this can found here:
However, you can use the following workaround to use ‘GRETNA’ on your machine in r2021b:
You can refer to the below documentation to learn more:
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!