Trouble running glmnet in Matlab R2019b on Mac Os Catalina 10.15

11 次查看(过去 30 天)
Has anybody else encountered problems using the glmnet package on Mac Os Catalina 10.15? I am using Matlab R2019b.
I downloaded the package and saved all files within my working directory. When I try to invoke the glmnet function, I get the following error:
Invalid MEX-file
'/Users/name/Desktop/glmnet_matlab/glmnetMex.mexmaci64':
dlopen(/Users/name/Desktop/glmnet_matlab/glmnetMex.mexmaci64, 6): no
suitable image found. Did find:
/Users/name/Desktop/glmnet_matlab/glmnetMex.mexmaci64: code
signature in
(/Users/name/Desktop/glmnet_matlab/glmnetMex.mexmaci64) not
valid for use in process using Library Validation: library load
disallowed by system policy
I also get an error if I go into my working folder and try to open up the file in question ( glmnetMex.mexmaci64 ) with Matlab. When I do this, I get a pop-up error window saying
Error using Open. Cannot edit the Mex- file.
Any thoughts on how to get around this? Any help is much appreciated.
Thanks,
Mick
  1 个评论
Fred Arbieto
Fred Arbieto 2019-11-14
编辑:Fred Arbieto 2019-11-14
I get the same error when trying to use the matlabPyrTools package (https://www.cns.nyu.edu/~lcv/software.php):
Invalid MEX-file '/Users/name/matlabPyrTools/MEX/corrDn.mexmaci64': dlopen(/Users/name/matlabPyrTools/MEX/corrDn.mexmaci64, 6): no
suitable image found. Did find:
/Users/name/matlabPyrTools/MEX/corrDn.mexmaci64: code signature in
(/Users/name/matlabPyrTools/MEX/corrDn.mexmaci64) not valid for use in process
using Library Validation: library load disallowed by system policy.
I am on Catalina as well, but am using Matlab2018b.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2019-11-14
You need to whitelist the executable; https://bugs.launchpad.net/gcc-arm-embedded/+bug/1832620

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by