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

今天编译项目的时候,Xcode报错:can't exec '/usr/bin/make' (No such file or directory),在控制台执行make命令也报错:-bash: make: command not found。

这是因为Xcode4.3.2默认没有安装Command Line Tools。

打开Xcode菜单中的Preferences,切换到Downloads选项卡,选中Components选项,列表中列出了一些可选的组件,其中有一项是Command Line Tools,点击后面的Install按钮进行安装。

安装完之后,可以在命令行执行make -v确认安装成功。

猜你喜欢

转载自eric-gao.iteye.com/blog/1571313