Error setting up SNOPT on Matlab R2019a on Mac OSX

117 views
Skip to first unread message

Fabrizio Sergi

unread,
Jul 27, 2022, 4:05:28 PM7/27/22
to SNOPT

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.

I did follow the instructions on linking (https://ccom.ucsd.edu/~optimizers/docs/snopt/linking.html#linking-main), and run all components of “Matlab Setup”, but not “License Setup” as the instructions are specific to Windows. Are there terminal commands needed for MacOS for the license?

Thanks,

Fabrizio Sergi

Jie Yao

unread,
Oct 12, 2022, 5:40:35 PM10/12/22
to SNOPT
Hi Fabrizio;

Have you solved your problem ?

thanks

Jie 

X GAO

unread,
Jul 5, 2023, 3:45:32 PM7/5/23
to SNOPT
Hello Jie, 

I have the same problem.
Have you solved it?

Best
Xinzhou

Blake Hannah

unread,
Oct 11, 2023, 4:52:00 PM10/11/23
to SNOPT
Hi,

I am really hoping someone found a solution to this. Let me know if you did.

Thank you,
Blake

Reply all
Reply to author
Forward
0 new messages