Fail to set up cvx in Matlab on my Mac book
87 views (last 30 days)
Show older comments
>> 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 Comment
Andreas Goser
on 6 Feb 2024
Based on the last lines of the error message, there is a support infrastructure by the CVX authors. I recommend contacting them.
Answers (1)
prabhat kumar sharma
on 19 Feb 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 Comments
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!