error: can't exec '/usr/bin/make' (No such file or directory)

编译一个示例代码时,Xcode报这个错误:

error: can't exec '/usr/bin/make' (No such file or directory)

原因:Xcode没有安装Command Line Tools

解决方法:打开Xcode - Preferences - Downloads - Components,安装列表中的Command Line Tools即可,见下图:

posted @ 2012-12-08 04:26  黑白赵  阅读(793)  评论(0编辑  收藏  举报