unable to get commandbox working in CentOs 7

box version

/bin/box: line 19: which: command not found

dirname: missing operand

Try ‘dirname --help’ for more information.

Error: Could not find or load main class cliloader.LoaderCLIMain

What happens if you run “which box” from bash?

According to this SO question, there appears to be CentOS distros that don’t include the “which” command.


You can see, the shell script that bootstraps CommandBox up on Unix OS’s uses that command:

Workarounds for that logic are welcome.



ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com