Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Helios - "cannot run program make; unknown reason"

Tags:

c++

eclipse

I upgraded Eclipse from Galileo to Helios, and when I try doing "Clean Project", I get an error saying "cannot run program make; unknown reason". I was able to run make in Galileo, so I'm not sure why this is happening, and whether anyone else encountered this.

like image 527
Ravi Avatar asked Jan 21 '11 18:01

Ravi


2 Answers

Add PATH to the environment (Preferences -> C/C++ -> Build -> Environment).

I also had to add $ORACLE_HOME to the environment as well (my code uses Pro*C) - looks like CDT isn't picking-up the user's environment variables when it was before.

It's annoying, I know...

like image 85
trojanfoe Avatar answered Nov 02 '22 03:11

trojanfoe


An alternative answer that builds on trojanfoe's above.

Assuming you can run make in your native environment shell, the solution depends on whether you selected "Replace native environment with specified one" (OP1) or "Append variables to native environment" (OP2) in (Preferences -> C/C++ -> Build -> Environment):

Solution-OP1: Add PATH to the environment (Preferences -> C/C++ -> Build -> Environment).

I also had to add $ORACLE_HOME to the environment as well (my code uses Pro*C) - looks like CDT isn't picking-up the user's environment variables when it was before.

It's annoying, I know...

Solution-OP2: make sure the location of your make command in the PATH variable in your native environment.

like image 31
elizeu Avatar answered Nov 02 '22 05:11

elizeu