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.

http://stackoverflow.com/questions/27815420/bash-centos7-which-command

You can see, the shell script that bootstraps CommandBox up on Unix OS’s uses that command:
https://github.com/Ortus-Solutions/commandbox/blob/development/src/bin/box.sh#L19

Workarounds for that logic are welcome.

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

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