cvxr / CVX

A MATLAB system for disciplined convex programming
Other
226 stars 83 forks source link

Troubles to install CVX on Mac(Book Air M2): cvx_bcompress_mex.mexmaci64 cannot be run because... #17

Closed hurak closed 5 months ago

hurak commented 1 year ago

I am trying to install CVX on a new MacBook Air M2. Whether I choose the standard bundle or the distributable bundle, I keep failing to finish the installation. After running cvx_setup for the version without Gurobi and Moses, a popup window appears that says something like

Application „cvx_bcompress_mex.mexmaci64“ cannot be run, because its developer is uknown

This is my translation of the message provided by the system in the local(sized) language.

Most probably I am now revealing an ignorance of a fresh user of a MacOS system but I just do not know how to proceed (on Linux I just install what I want, on Windows I can ignore such warnings and proceed anyway). I just clicked cancel, which left the installation incomplete, but there was no other option (or, in fact, the other option was to delete the whole app).

This is the output in Matlab:

>> cvx_setup

---------------------------------------------------------------------------
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/hurak/Documents/MATLAB/toolboxes/cvx
    MATLAB version: 9.13 (R2022b)
    OS: Mac OS X x86_64 version 13.0
    Java version: 1.8.0_202
Verfying CVX directory contents:
    WARNING: The following files/directories are missing:
        /Users/hurak/Documents/MATLAB/toolboxes/cvx/sedumi/.travis.yml
    These omissions may prevent CVX from operating properly.
Preferences: 
    Path: /Users/hurak/Library/Application Support/MathWorks/MATLAB/cvx_prefs.mat
---------------------------------------------------------------------------
Setting CVX paths...done.
Saving updated path...done.
Searching for solvers...3 shims found.
4 solvers initialized (* = default):
    GLPK       unknown    /Users/hurak/Documents/MATLAB/tbxmanager/toolboxes/glpkmex/1.0/maci64/glpkmex_1_0_maci64
 *  SDPT3      4.0        {cvx}/sdpt3
    SeDuMi     1.3.4      {cvx}/sedumi
    SeDuMi_2   1.3        /Users/hurak/Documents/MATLAB/tbxmanager/toolboxes/sedumi/1.3/maci64/sedumi_1_3_maci64
Saving updated preferences...done.
Testing with a simple model...
    UNEXPECTED ERROR: -----------------------------------------------------------------------------------------------
    Invalid MEX-file
        '/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64':
    dlopen(/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64,
        0x0006): tried:
    '/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64'
        (code signature in
    <E891EFE0-9F21-342A-89C6-7DF9CE46EEFB>
        '/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64'
        not valid for use
    in process: library load disallowed by system policy),
    '/System/Volumes/Preboot/Cryptexes/OS/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64'
        (no such file),
    '/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64'
        (code signature in
    <E891EFE0-9F21-342A-89C6-7DF9CE46EEFB>
        '/Users/hurak/Documents/MATLAB/toolboxes/cvx/lib/cvx_bcompress_mex.mexmaci64'
        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 212)
                minimize( norm(A*x-b,1) );
    -----------------------------------------------------------------------------------------------------------------
Please report this error to support, and include entire output of
CVX_SETUP in your support request.
---------------------------------------------------------------------------
mcg1969 commented 5 months ago

https://ask.cvxr.com/t/announcement-cvx-for-apple-silicon/12280