CVX failed on my Mac

Hi,

I tried to install CVX on a Mac mini with OS X EI Capitan version10.11.4
I am using Matlab 2017a while I got the following error when run cvx_setup
cvx_setup


CVX: Software for Disciplined Convex Programming ©2014 CVX Research
Version 2.1, Build 1114 (a5418ba) Wed Mar 29 10:12:37 2017

Installation info:
Path: /Users/feiwang/Documents/MATLAB/cvx 2
MATLAB version: 9.2 (R2017a)
OS: Mac OS X x86_64 version 10.11.4
Java version: 1.7.0_75
Verfying CVX directory contents:
No missing files.
Preferences:
Path: /Users/feiwang/Library/Application Support/MathWorks/MATLAB/cvx_prefs.mat
License host:
Username: feiwang
Host ID: 685b3589a094 (en0)
Installed license:
No license installed.
No valid licenses found.
Click here to fill out an academic license request
for the username and first hostid listed above.

Setting CVX paths…done.
WARNING: other CVX installations were found in your MATLAB path:
/Users/feiwang/Downloads/cvx
They have been removed to prevent conflicts.
Saving updated path…done.
Searching for solvers…5 shims found.
2 solvers initialized (* = default):

  • SDPT3 4.0 {cvx}/sdpt3
    SeDuMi 1.34 {cvx}/sedumi
    3 solvers skipped:
    GLPK
    Could not find a GLPK installation.
    Gurobi {cvx}/gurobi/maci64
    UNEXPECTED ERROR: ---------------------------------------------
    Invalid MEX-file ‘/Users/feiwang/Documents/MATLAB/cvx
    2/gurobi/maci64/gurobi.mexmaci64’:
    ’/Users/feiwang/Documents/MATLAB/cvx
    2/gurobi/maci64/gurobi.mexmaci64’ is not a valid shared
    library…
    Error in cvx_gurobi
    Error in cvx_gurobi
    Error in cvx_setup (line 83)
    tsolv = feval( tsolv.sname, tsolv );
    Please report this error to CVX Support by visiting
    http://support.cvxr.com/support/tickets/new
    or by sending an email to cvx@cvxr.com. Please include the full
    output of this function in your report. Thank you!
    ---------------------------------------------------------------
    Mosek unknown {cvx}/mosek/maci64
    A CVX Professional license is required.
    Saving updated preferences…done.
    Testing with a simple model…
    UNEXPECTED ERROR: -----------------------------------------------
    Invalid MEX-file ‘/Users/feiwang/Documents/MATLAB/cvx
    2/lib/cvx_bcompress_mex.mexmaci64’:
    ’/Users/feiwang/Documents/MATLAB/cvx
    2/lib/cvx_bcompress_mex.mexmaci64’ is not a valid shared
    library…
    Error in cvx_bcompress (line 29)
    [ ndxs, scls ] = cvx_bcompress_mex( sparse( x ), mode, num_sorted
    );
    Error in cvx/bcompress (line 21)
    [ xR, xb ] = cvx_bcompress( xb, mode, nsrt );

    Error in cvx/svec (line 13)
    [ xR, y ] = bcompress( x );
    Error in cvx/norm (line 46)
    x = svec( x, p );
    Error in cvx_setup (line 212)
    minimize( norm(A*x-b,1) );

Please report this error to support, and include entire output of
CVX_SETUP in your support request.

Can someone help me? Thank you very much!

Fei

I’m afraid CVX is not yet compatible with MATLAB R2017b. (And in fact, neither is Gurobi.) Please use R2016b or earlier. I just added a warning at the top of the download page.

Same problem exactly with Mac OS 10.12.3