开发者

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

开发者 https://www.devze.com 2023-02-05 20:08 出处:网络
I upgraded 开发者_如何学JAVAEclipse 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,

I upgraded 开发者_如何学JAVAEclipse 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.


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


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.


Some amplification on this helpful information for OS X that I discovered this evening with Helios:

my make was located in /Developer/usr/bin; I added this to the PATH variable.

In the C/C++ Build -- Settings section of the project preferences, I added the /Developer/SDKs/MacOSX10.6.skd/usr/lib directory. It includes the libraries you will need.


I have found that in project -> properties -> C/C++build -> Environment, "Append variables to native environment" has to be chosen instead of "Replace native environment with specified one".

0

精彩评论

暂无评论...
验证码 换一张
取 消