Fail to set up cvx in Matlab on my Mac book

40 次查看(过去 30 天)
>> 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 个评论
Andreas Goser
Andreas Goser 2024-2-6
Based on the last lines of the error message, there is a support infrastructure by the CVX authors. I recommend contacting them.

请先登录,再进行评论。

回答(1 个)

prabhat kumar sharma
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!

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by