Labels

Linux (6) OpenCV (4) Deep Learning (3) MATLAB (3) Mac OS X (3) Windows (2) C# (1) Node JS (1)

2013年2月2日 星期六

Running Mosek on Mac OS X 10.8 Mountain Lion

Mosek is a commercial software library for solving large-scale LP, QP, SOCP and MIP problems. (http://www.mosek.com)

To use the library, the user needs to add the following environment variables:
export DYLD_LIBRARY_PATH= $HOME/mosek/6/tools/platform/osx64x86/bin:$DYLD_LIBRARY_PATH
export MOSEKLM_LICENSE_FILE=$HOME/mosek/6/licenses/mosek.lic

suppose you put Mosek under your home directory.

Before Mountain Lion, the environment variables were put in .MacOSX/environment.plist. However, this method is no longer supported by OS X 10.8. Therefore, we need to put the variables in /etc/profile, and execute MATLAB from terminal

Finally, remember to add mosek/6/toolboxs/r2009b into your MATLAB path. Then you can run Mosek on Mac!