Running Commandbox on a Mac

Sorry if I’m asking the bleeding obvious here.

I have the JRE bundled Mac Install. unzipped it to get a file called box and a jre folder… what do I do next? Can’t find any any of the docs (all windows based)

Is anyone able to point me to a guide, or give a quick rundown on how I run commandbox on a Mac?

Thanks in advance!

Jason

All of our docs are here:
http://ortus.gitbooks.io/commandbox-documentation/content/setup/installation.html

They may happen to have examples to use Windows (because I wrote them, mostly and I use Window :slight_smile: but they apply to all operating systems.

The long and short of it is simply to make the “box” binary executable and then run it :slight_smile: if you don’t have Java installed on your Mac, you’ll need to keep the JRE in the same relative folder as the box binary. We recommend adding it to your /usr/bin folder so it is global and can be called from anywhere.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Thanks Brad!

I’m not having much luck unfortunately.

If I downlod and run I am getting the following errors:

/Users/jason/Commandbox/box: line 86: /Users/jason/Commandbox/jre/bin/bin/java: No such file or directory
/Users/jason/Commandbox/box: line 86: exec: /Users/jason/Commandbox/jre/bin/bin/java: cannot execute: No such file or directory
logout

And if I try to install with Homebrew, I get the following:

Error: undefined method resource' for Commandbox:Class Please report this bug: https://github.com/mxcl/homebrew/wiki/troubleshooting /Library/Caches/Homebrew/Formula/commandbox.rb:11 /usr/local/Library/Homebrew/formulary.rb:40:in require’
/usr/local/Library/Homebrew/formulary.rb:40:in klass' /usr/local/Library/Homebrew/formulary.rb:130:in get_formula’
/usr/local/Library/Homebrew/formulary.rb:175:in factory' /usr/local/Library/Homebrew/formula.rb:415:in factory’
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in formulae' /usr/local/Library/Homebrew/extend/ARGV.rb:12:in map’
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in formulae' /usr/local/Library/Homebrew/cmd/install.rb:22:in install’
/usr/local/Library/brew.rb:95:in `send’
/usr/local/Library/brew.rb:95

Has anyone had similar issues?

Hm, maybe one of our Mac users can chime in. Luis is using CommandBox on his Mac daily and I think he used Homebrew to install it.

Regarding the first error, which version did you download? If it was the JRE version, is the JRE folder next to the binary. Actually, come to think of it-- someone reported and fixed a bug that affected the Mac version. Here it is:

https://ortussolutions.atlassian.net/browse/COMMANDBOX-168

That fix hasn’t released yet. Can you try our bleeding edge build?

http://integration.stg.ortussolutions.com/artifacts/ortussolutions/commandbox/1.0.0/commandbox-jre-darwin64-1.0.0.zip

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Jason, we just bumped our bleeding edge version in preparation for a patch release next week. Please test with this link instead:

http://integration.stg.ortussolutions.com/artifacts/ortussolutions/commandbox/1.0.1/commandbox-jre-darwin64-1.0.1.zip

The 1.0.0 folder has been reverted to the stable version we released originally.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

1.0.1 worked a treat. Fired up without issue.

Thanks Brad, and thanks for all the great stuff yourself and Ortus Solutions are doing for CF!!

Jason