添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
温柔的围巾  ·  陈一发85年出生 - 百度·  3 月前    · 
威武的蜡烛  ·  WebOS软件下载 ...·  5 月前    · 
好帅的砖头  ·  redis ...·  9 月前    · 
快乐的马克杯  ·  新漫画·  1 年前    · 
I'm trying to add C and C++ compiler for MATLAB 2017b on my mac but it gives error
/bin/bash: sh: command not found
and
Warning: Xcode appears to be installed , but it has not been configured. Run "osascript -e 'do shell script "xcode-select -switch /Applications/Xcode.app" with administrator privileges'" to configure Xcode. You must be an administrator of this computer to complete this action.
So, when I run osacript... it gives error
/bin/bash: osascript: command not found
ans =
127
I already did
sudo xcode-select -switch /Applications/Xcode.app/
and changed
MACOSX_DEPLOYMENT_TARGET= "10.13"
which was 10.9 in clang_maci64.xml and clang++_maci64.xml files. Can anybody help me to solve this issue. Thank you.
You have to add the paths in the
/App../MATLAB../bin/maci64/mexopts/clang++_maci64.xml /App../MATLAB../bin/maci64/mexopts/clang_maci64.xml
to the SDK10.13 inside your XCode. Then it will find the compiler. To check that this is the problem you can run mex -v -setup C++. If it can't find the SDK there you have to add it inside the xml file.

Community Treasure Hunt

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

Start Hunting!