"No such file or directory" error when running the "mex -setup" command on a Mac
8 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2017 年 12 月 27 日
回答済み: MathWorks Support Team
2018 年 1 月 2 日
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?
採用された回答
MathWorks Support Team
2017 年 12 月 27 日
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
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!