"No such file or directory" error when running the "mex -setup" command on a Mac

8 vues (au cours des 30 derniers jours)
When I run the "mex" command to setup my C compiler, I see very obscure errors in the output. See below:
 
>> mex -setup
*_find: 76282: No such file or directory_*
*_find: 76285: No such file or directory_*
*_find: 76288: No such file or directory_*
*_MEX configured to use 'Xcode with Clang' for C language compilation._*
_*Warning: The MATLAB C and Fortran API has changed to support MATLAB*_
_* variables with more than 2^32-1 elements. You will be required*_
_* to update your code to utilize the new API.*_
_* You can find more information about this at:*_
_* <http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html>.*_
To choose a different language, select one from the following:
mex -setup C++
mex -setup FORTRAN
What is causing these errors? How can I prevent these errors from showing?

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 27 Déc 2017
Incorrect modifications to the MATLAB path or unintentional corruption of the MATLAB Preferences may be a cause for these errors. To eliminate these errors, use these steps:
1. Regenerate MATLAB Preferences
This is an easy process that involves simply renaming the preference folder that MATLAB references upon startup. The instructions to regenerate MATLAB Preferences can be found here.
2. Restore MATLAB default path by using the following commands:
restoredefaultpath
rehash toolboxcache
If those commands resolve the issue, then execute:
savepath

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by