找不到Eclipse CDT Binary - Mac OS X Lion [英] Eclipse CDT Binary not found - Mac OS X Lion

查看:154
本文介绍了找不到Eclipse CDT Binary - Mac OS X Lion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的MacBook Air上,我需要使用Eclipse为学校制作一些c ++程序。所以我从eclipse.org下载了Eclipse for C ++并制作了一个Hello World程序。但是,当我尝试运行程序时,它只是给我错误启动失败,二进制没有找到。

On my MacBook Air I need to use Eclipse to make some c++ programs for school. So I downloaded Eclipse for C++ from the eclipse.org and made a little Hello World program. However, when I try to run the program, it just gives me the error "Launch failed. Binary not found".

当我尝试构建程序,输出:

When I try to build the program, this is the output:

**** Build of configuration Debug for project HelloWorldC ****

make all 

Cannot run program "make": Unknown reason
Error: Program "make" is not found in PATH

PATH=[/usr/bin:/bin:/usr/sbin:/sbin]

**** Build Finished ****

但是,我试图在Xcode中创建一个hello world应用程序并且工作完美...

However, I tried to make a hello world application in Xcode and that works perfect...

不幸的是,我不能使用Xcode,因为老师只允许Eclipse项目...

Unfortunately, I cannot use Xcode because the teacher is only allowing Eclipse projects...

推荐答案

我找到了解决方案。

问题是你只能从应用商店安装最新的Xcode(4.3),默认情况下c ++编译器只能通过Xcode来访问,你需要:

The problem is that you can install the latest Xcode (4.3) only from the app store, and by default it seems like the c++ compiler is only accessible through Xcode, to solve this you need to:


  1. 打开Xcode

  2. 前往首选项

  3. >
  4. 安装命令行工具

这篇关于找不到Eclipse CDT Binary - Mac OS X Lion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆