Yalmiptest gives me error of missing symbol in mosek

68 views
Skip to first unread message

MY

unread,
Jun 23, 2018, 1:50:25 PM6/23/18
to YALMIP
Hi,

I've tried to install mosek on macbook to use with yalmip, but when I run yalmiptest it gives me missing symbol error from mosek, I think I did not do installation of mosek right.
Can anyone help me how to run the following command for mosek installaation?

Run the command

python <MSKHOME>/mosek/8/tools/platform/osx64x86/bin/install.py

where <MSKHOME> is the directory where MOSEK was installed. This will set up the appropriate shared objects required when using MOSEK.


Do I need phyton to be able to run this command, or matlab is enough?


Thanks,


Johan Löfberg

unread,
Jun 23, 2018, 2:07:11 PM6/23/18
to YALMIP
yalmip has no relation to python

for yalmip to work, the path has to be set in matlab so the mosek binaries are visible, and mosek has to be in the system path


>> mosekdiag
Matlab version: 9.4.0.813654 (R2018a)
Architecture  : PCWIN64
The mosek optimizer executed successfully from the command line:

MOSEK Version 8.1.0.53 (Build date: 2018-5-4 18:31:19)
Copyright (c) MOSEK ApS, Denmark. WWW: mosek.com
Platform: Windows/64-X86

FlexLM
 Version                  : 11.14
 Hostname                 : rtlt-01
 Host ID                  : "dafc93adbe02 d8fc93adbe03 5cb901ab072e d8fc93adbe02 0a0027000009 005056c00001 005056c00008"
 License path             : C:\Users\johlo46\mosek\mosek.lic

Operating system variables
 PATH                     :

*** No input file specfied. No optimization is performed.

Return code - 0  [MSK_RES_OK]

mosekopt: C:\Program Files\Mosek\8\toolbox\r2014aom\mosekopt.mexw64
mosekopt is working correctly.



MY

unread,
Jun 23, 2018, 2:23:22 PM6/23/18
to YALMIP
So I don't need to run the phyton related command?
When I run mosekdiag this is the output:
 
>> mosekdiag
Matlab version: 9.2.0.556344 (R2017a)
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/my/mosek/8/toolbox/r2014a/mosekopt.mexmaci64
Invalid MEX-file '/Users/my/mosek/8/toolbox/r2014a/mosekopt.mexmaci64': Missing dependent shared libraries:
'libmosek64.8.1.dylib' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_analyzeproblem' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_appendbarvars' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_appendcone' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_appendcons' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_appendvars' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_callocenv' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_calloctask' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_checkversion' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_conetypetostr' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_deleteenv' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_deletetask' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_dualsensitivity' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_echoenv' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_echointro' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_freeenv' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_freetask' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getacol' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getbarablocktriplet' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getbarcblocktriplet' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getbarsj' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getbarvarname' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getbarxj' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getbound' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'
Missing symbol '_MSK_getboundslice' required by '/Users/myilmaz/mosek/8/toolbox/r2014a/mosekopt.mexmaci64'

Johan Löfberg

unread,
Jun 23, 2018, 2:30:31 PM6/23/18
to YALMIP
so failed installation, nothing yalmip can fix

Erling D. Andersen

unread,
Jun 25, 2018, 5:31:03 AM6/25/18
to YALMIP
If you do not do the command MOSEK will not work on OSX.  So you need to have Python installed even you only use MOSEK from Matlab.


python <MSKHOME>/mosek/8/tools/platform/osx64x86/bin/install.py

MY

unread,
Jun 25, 2018, 11:47:30 AM6/25/18
to YALMIP
Thanks Erling,

I've fixed the problem by installing and running the command in pyhton.

Johnny

unread,
May 28, 2020, 11:48:04 PM5/28/20
to YALMIP
dose it mean that I should run the code below in python? I don't think I can use command 'python' in matlab

 <MSKHOME>/mosek/8/tools/platform/osx64x86/bin/install.py


then I put 
/Users/munjunhwi/Documents/mosek/9.2/tools/platform/osx64x86/bin/install.py
but it dosen't work. Can you please answer it?

Erling D. Andersen

unread,
May 29, 2020, 1:19:34 AM5/29/20
to YALMIP
After unpacking Mosek you should follow instructions at


These instructions does not tell you to run Python inside Matlab but outside btw.
Reply all
Reply to author
Forward
0 new messages