Hi,
I am trying to install SNOPT on Matlab for Mac. I have Mac OS version 10.15.7, and Matlab R2019a. I downloaded the library snopt7_matlab, but when running the example file runNPexamples.m I receive the error listed below:
Invalid MEX-file '/PATH/snopt7_matlab/snoptmex.mexmaci64':
dlopen(/PATH/snopt7_matlab/snoptmex.mexmaci64, 6): Symbol not found: _for_getenv_err
Referenced from: /PATH/snopt7_matlab/snoptmex.mexmaci64
Expected in: /Applications/MATLAB_R2019a.app/bin/maci64/../../sys/os/maci64/libifcore.dylib
in /PATH/snopt7_matlab/snoptmex.mexmaci64
Error in snprint (line 6)
snoptmex(mexopt,printfile);
Error in snopt (line 272)
snprint(printfile);
Error in t1diet (line 10)
[x,F,INFO,xmul,Fmul,xstate,Fstate,output]= snopt( x, xlow, xupp, xmul, xstate, …
My PATH when running the file is the local snopt7_matlab folder.
I have tried downloading the Intel ifort compiler, which has added the libifcore.dylib, but the same error keeps occurring. I don’t know under which folder under the MATLAB_R2019a installation the system is expecting to find the file libifcore.dylib, but there is no such a file there.
Thanks,
Fabrizio Sergi