macOS installation error

Hello, it would be great to get some help please…
I am using MacBook Air, with M2 chip, chose the standard package on cvxr.

I tried removing quarantine of the .tar file, installing the latest Matlab 2024b, followed the instructions on cvxd.com to install…
however, I still got the same following error…
no idea why it cannot find the folder and files…

much appreciated for any help…


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

Installation info:
Path: /Users/da/Desktop/AAE/cvx
MATLAB version: 24.2 (R2024b)
OS: Mac OS X aarch64 version 14.6.1
Java version: 11.0.24
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
/Users/da/Desktop/AAE/cvx/sedumi/.travis.yml
These omissions may prevent CVX from operating properly.
ERROR: one or more MEX files for this platform are missing.
These files end in the suffix “.mexmaca64”. CVX will not operate
without these files. Please visit
Downloading CVX | CVX Research, Inc.
And download a distribution targeted for your platform.
Preferences:
Path: /Users/da/Library/Application Support/MathWorks/MATLAB/cvx_prefs.mat
UNEXPECTED ERROR: ------------------------------
Unrecognized function or variable ‘command_str’.
Error in cvx_license
Error in cvx_license
Error in cvx_version (line 309)
cvx_license( args{:} );
^^^^^^^^^^^^^^^^^^^^^^
Error in cvx_setup (line 20)
cvx_version( ‘-install’, varargin{:} );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
------------------------------------------------
Please report this error to support, and include entire output of
CVX_SETUP in your support request.

Use the latest version from 2024 Downloading CVX | CVX Research, Inc.

The one from 2020 will not work on osxaarch64.

thanks a lot! it seems better but still got another error… :melting_face:
“cvx_bcompress_mex.mexmaca64” can’t be opened because Apple cannot check it for malicious software.

And it got the error when it’s testing a simple model…

Setting CVX paths…already set!
Searching for solvers…5 shims found.
2 solvers initialized (* = default):

  • SDPT3 4.0 {cvx}/sdpt3
    SeDuMi 1.02, {cvx}/sedumi
    3 solvers skipped:
    GLPK
    Could not find a GLPK installation.
    Gurobi unknown
    Could not find a Gurobi MEX file.
    Mosek unknown
    Could not find a MOSEK MEX file.
    Saving updated preferences…done.
    Testing with a simple model…
    UNEXPECTED ERROR: ------------------------------------------------------------------------------------
    Invalid MEX-file
    ‘/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64’:
    dlopen(/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64,
    0x0006): tried:
    ‘/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64’
    (code signature in
    <7AB8380E-0FB8-3DE7-A4C7-A5972F20E39E>
    ‘/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64’
    not valid for use in
    process: library load disallowed by system policy),
    ‘/System/Volumes/Preboot/Cryptexes/OS/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64’
    (no such file),
    ‘/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64’
    (code
    signature in <7AB8380E-0FB8-3DE7-A4C7-A5972F20E39E>
    ‘/Users/daniel/Desktop/AAE561/cvx/lib/cvx_bcompress_mex.mexmaca64’
    not valid for use in
    process: library load disallowed by system policy)
    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 215)
    minimize( norm(A*x-b,1) );
    ^^^^^^^^^^^^^

If it is the overprotective OS then there are many posts on this forum about it, for instance

Generally online you will also find many posts about how to disable security checks for unverified binaries on your OS.