Unable to install CVX in iMAC? Invalid MEX-file

I have new iMac and tried two install CVX.
After I run the cvx_setup, I get the following messages:


CVX: Software for Disciplined Convex Programming ©2014 CVX Research
Version 2.2, Build 1148 (62bfcca) Tue Jan 28 00:51:35 2020

Installation info:
Path: /Users/dipaknarayanan/Desktop/UtilityToolBox/cvx
MATLAB version: 9.4 (R2018a)
OS: Mac OS X x86_64 version 10.15.7
Java version: 1.8.0_144
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/sedumi/.travis.yml
These omissions may prevent CVX from operating properly.
Preferences:
Path: /Users/dipaknarayanan/Library/Application Support/MathWorks/MATLAB/cvx_prefs.mat
License host:
Username: dipaknarayanan
Host ID: 3b6d0c0134cd (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.
Saving updated path…done.
Searching for solvers…5 shims found.
2 solvers initialized (* = default):

  • SDPT3 4.0 {cvx}/sdpt3
    SeDuMi 1.3.4 {cvx}/sedumi
    3 solvers skipped:
    GLPK
    Could not find a GLPK installation.
    Gurobi unknown {cvx}/gurobi/maci64
    Invalid MEX-file
    ‘/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/gurobi/maci64/gurobi.mexmaci64’:
    dlopen(/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/gurobi/maci64/gurobi.mexmaci64,
    6): no suitable image found. Did find:
    /Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/gurobi/maci64/gurobi.mexmaci64:
    code signature in
    (/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/gurobi/maci64/gurobi.mexmaci64)
    not valid for use in process using Library Validation:
    library load disallowed by system policy.
    Mosek unknown {cvx}/mosek/maci64
    Unexpected MEX file failure:
    Invalid MEX-file
    ‘/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/mosek/maci64/mosekopt.mexmaci64’:
    dlopen(/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/mosek/maci64/mosekopt.mexmaci64,
    6): no suitable image found. Did find:
    /Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/mosek/maci64/mosekopt.mexmaci64:
    code signature in
    (/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/mosek/maci64/mosekopt.mexmaci64)
    not valid for use in process using Library Validation:
    library load disallowed by system policy.
    Saving updated preferences…done.
    Testing with a simple model…
    UNEXPECTED ERROR: ----------------------------------------------------------------------------
    Invalid MEX-file
    ‘/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/lib/cvx_eliminate_mex.mexmaci64’:
    dlopen(/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/lib/cvx_eliminate_mex.mexmaci64,
    6): no suitable image found. Did find:
    /Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/lib/cvx_eliminate_mex.mexmaci64:
    code signature in
    (/Users/dipaknarayanan/Desktop/UtilityToolBox/cvx/lib/cvx_eliminate_mex.mexmaci64)
    not valid for use in process using Library Validation: library
    load disallowed by system policy.
    Error in cvxprob/eliminate (line 150)
    [ rows, cols ] = cvx_eliminate_mex( dbCA, 1, rsv, ineqs
    );
    Error in cvxprob/solve (line 18)
    [ At, cones, sgn, Q, P, dualized ] = eliminate( prob, true,
    shim.dualize );
    Error in cvx_end (line 88)
    solve( prob );
    Error in cvx_setup (line 213)
    cvx_end

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

How can I solve this?

Try pout the stuff listed at Installing CVX on Mac new with M1 chip .