custom build command not found

CodeLite installation/troubleshooting forum
ajhannan
CodeLite Curious
Posts: 2
Joined: Mon Jul 19, 2010 3:18 am
Genuine User: Yes
IDE Question: C++
Contact:

custom build command not found

Post by ajhannan »

Hello,

I am using CodeLite v2.5.3.4075 on Mac OS X 10.5.8. I enabled custom build with build command "scons". When I build the project from CodeLite I get this error:

----------Build Started--------
MESSAGE: Entering directory `/Users/afsheenb/MongoDB/mongo/'
/bin/sh -c 'scons'
----------Building project:[ mongod - Release ]----------
/bin/sh: scons: command not found
----------Build Ended----------
0 errors, 0 warnings

but from my terminal it works:

> /bin/sh -c 'scons'
scons: Reading SConscript files ...

> which scons
/usr/local/bin/scons

Why does CodeLite not see programs in /usr/local/bin/ and how do I make it see them?

Thanks a lot,
Tony
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: custom build command not found

Post by eranif »

probably because that when you start the program by double clicking it codelite does not inherit the environment as it would if you will start it from the shell

add the 'scons' path to the PATH variable inside codelite.

from the menu: 'settings -> environment variables' (use the 'Default' environment set)

add this line:

Code: Select all

PATH=/path/to/scons/:$(PATH)
replace '/path/to/scons' with the actual path and try it again

Eran
Make sure you have read the HOW TO POST thread
ajhannan
CodeLite Curious
Posts: 2
Joined: Mon Jul 19, 2010 3:18 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: custom build command not found

Post by ajhannan »

Thank you, Eran, that worked.

Cheers,
Tony
Post Reply