mex -setup does not work

I was trying to setup mex in 2018b on mac. However I got the following
>> mex -v -setup
Verbose mode is on.
... Looking for compiler 'Xcode with Clang' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'xcode-select -print-path' ...Not enough input arguments.
Does any one know how to deal with this?

2 件のコメント

Jan
Jan 2019 年 2 月 20 日
Did you install Xcode already?
Mingxi Liu
Mingxi Liu 2019 年 2 月 20 日
Yes I did. I installed xcode 10.1(10B61).
I can run 'xcode-select -print-path' in terminal and get "/Applications/Xcode.app/Contents/Developer".

サインインしてコメントする。

回答 (1 件)

Munish Raj
Munish Raj 2019 年 2 月 26 日

0 投票

Hello Mingxi Liu,
pleasy try this command in your terminal
sudo xcode-select -s /Applications/Xcode.app
This should solve the issue.

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2018b

タグ

質問済み:

2019 年 2 月 20 日

回答済み:

2019 年 2 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by