Troubleshooting Build Systems

Build systems will look for executables in your PATH. Therefore, your PATH variable must be correctly set.

On some operating systems, the value of PATH may vary between terminal windows and graphical applications. Thus, depending on how you start Sublime Text, the build system may or may not work.

To solve this issue, make sure you set the PATH so that graphical applications such as Sublime Text can find it. See the links below for more information.

Alternatively, you can use the path option in a .sublime-build file to override the PATH used to locate the executable specified in cmd.

See also

Managing Environment Variables in Windows
Search Microsoft knowledge base for this topic.
Setting Environment Variables in OSX
StackOverflow topic.