Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse CDT Binary not found - Mac OS X Lion

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 ****

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

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

like image 496
Sander Declerck Avatar asked Dec 19 '25 18:12

Sander Declerck


1 Answers

I found the solution.

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. Open Xcode
  2. Go to Preferences
  3. Go to Downloads
  4. Install Command Line Tools
like image 163
Sander Declerck Avatar answered Dec 22 '25 10:12

Sander Declerck



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!