Invalid MEX-file

1,229 views
Skip to first unread message

Necrosis, Cuenca - Ecuador

unread,
Apr 24, 2014, 8:14:02 AM4/24/14
to mo...@googlegroups.com
Hi everyone, I'm getting this message when trying to run Mosek within a matlab file on my mac. Could anyone please help me with it?

Invalid MEX-file
'/Users/alexjerves/mosek/6/toolbox/r2009b/mosekopt.mexmaci64':
dlopen(/Users/alexjerves/mosek/6/toolbox/r2009b/mosekopt.mexmaci64, 6):
Library not loaded: libmosek64.6.0.dylib
  Referenced from:
  /Users/alexjerves/mosek/6/toolbox/r2009b/mosekopt.mexmaci64
  Reason: image not found

Sohail Khan

unread,
Apr 25, 2014, 12:20:23 PM4/25/14
to mo...@googlegroups.com

One idea is that check the path to mosek toolbox that you have added to Matlab. The path should not have spaces. I have got the similar error earlier due to this reason.

Best.
Sohail 

Erling D. Andersen

unread,
Apr 28, 2014, 7:40:18 AM4/28/14
to mo...@googlegroups.com
Please upgrade to version 7. Version 7 is much easier to get working on MAC.

Shalom Abate

unread,
Feb 14, 2017, 2:18:34 PM2/14/17
to mosek
Hello,

I recently installed Mosek 8 on my Macbook, and I'm also using it with Matlab. I added the installation to the Matlab path, and when I run Mosekdiag, I get the same issue.

>> mosekdiag
Matlab version: 9.1.0.441655 (R2016b)
Architecture  : MACI64
Warning: The mosek optimizer could not be invoked from the command line. Most likely the
path has
not been configured correctly. The mosek optimizer can still be invoked from the
MATLAB environment
.
> In mosekdiag (line 23)
mosekopt
: /Users/shalomabate/mosek/8/toolbox/r2014a/mosekopt.mexmaci64
Invalid MEX-file '/Users/shalomabate/mosek/8/toolbox/r2014a/mosekopt.mexmaci64':
dlopen
(/Users/shalomabate/mosek/8/toolbox/r2014a/mosekopt.mexmaci64, 6): Library not
loaded
: libmosek64.8.0.dylib
 
Referenced from: /Users/shalomabate/mosek/8/toolbox/r2014a/mosekopt.mexmaci64
 
Reason: image not found.


Error in mosekdiag (line 55)
[r,res] = mosekopt('minimize',prob,param);

Am I possibly missing requirements for it?

Thanks for the help!

Joachim Dahl

unread,
Feb 15, 2017, 6:55:37 AM2/15/17
to mo...@googlegroups.com
Have you followed the installation instructions here?

--
You received this message because you are subscribed to the Google Groups "mosek" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mosek+unsubscribe@googlegroups.com.
To post to this group, send email to mo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lucas.sch...@gmail.com

unread,
Sep 27, 2017, 2:29:46 PM9/27/17
to mosek
I have exactly the same problem as you and since I don't have any space in my path I don't know how to solve it ...

Erling D. Andersen

unread,
Sep 27, 2017, 2:41:20 PM9/27/17
to mosek
If you run

   mosekdiag

as suggested in 


and paste the output in the reply then we have bigger chance of helping you.

You did of course run the  install script as mentioned in the install manual i.e.


Right?

lucas.sch...@gmail.com

unread,
Sep 28, 2017, 12:45:53 AM9/28/17
to mosek
I did run mosekdiag and the output was the one Alex X. Jerves posted. However, I just managed to solve the problem by installing Xcode (needed for the python command xcrun to work) and typing the "python ./install.py" in the terminal as described in the installation manual you mentioned. This time it finally instally the libraries succesfully ! 

Erling D. Andersen

unread,
Sep 28, 2017, 5:18:28 AM9/28/17
to mosek
It might be Xcode is needed. We are looking into.
Reply all
Reply to author
Forward
0 new messages