Page 1 of 1

custom build command not found

Posted: Mon Jul 19, 2010 3:55 am
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

Re: custom build command not found

Posted: Mon Jul 19, 2010 8:43 am
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

Re: custom build command not found

Posted: Mon Jul 19, 2010 5:41 pm
by ajhannan
Thank you, Eran, that worked.

Cheers,
Tony