Fail to set up cvx in Matlab on my Mac book
40 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
>> 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/wangyilin/Downloads/cvx
MATLAB version: 23.2 (R2023b)
OS: Mac OS X aarch64 version 13.4
Java version: 1.8.0_392
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
/Users/wangyilin/Downloads/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
http://cvxr.com/cvx/download
And download a distribution targeted for your platform.
Preferences: none found; defaults loaded.
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.
I followed the guidance on the page and met this unexpected error. Could anyone help?
1 comentario
Andreas Goser
el 6 de Feb. de 2024
Based on the last lines of the error message, there is a support infrastructure by the CVX authors. I recommend contacting them.
Respuestas (1)
prabhat kumar sharma
el 19 de Feb. de 2024
Hello Wang,
I understand you're encountering an issue with installing CVX on a Mac with an M1 chip. The below error message indicating that MEX files with the suffix ".mexmaca64" are missing suggests that the necessary binaries for your platform were not included in the version of CVX you're trying to install.
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
http://cvxr.com/cvx/download
Historically, CVX did not have support for the M1 chip in Macs, which meant that users with this hardware could only use CVX on an Intel-based MacBook or by running MATLAB through the Rosetta emulator, which allows Intel-based applications to run on Apple Silicon.
However, recently CVX has released a package that supports MATLAB versions starting with R2023b directly on Apple Silicon, without the need for Rosetta emulation. This means you should be able to use CVX natively on your M1 Mac with the appropriate MATLAB release.
For detailed information and instructions on how to download and install the correct version of CVX for your M1 Mac, you can refer to the following threads on the CVX forum:
I hope it helps to resolve your issue!
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!