Home

Tim Hartmann edited this page Mar 24, 2014 · 14 revisions
Clone this wiki locally

Welcome to the boxen wiki!

Here are a couple of steps that should get you started with the RC Boxen install on Mac OS 10.9 (Mavericks)

Currently there are a couple of bugs in the install process, and this doc refers to build commit 12b5493f0a934e609e3ded72cc8c87e2b3784e5a

Starting with a freshly installed and patched version of Mavericks.

  • Install Xcode
    • Note - you must run xcode at least once to accept the license.. i don't know why, but you do.
  • Install dev tools
xcode-select --install
  • Create your boxen directory
sudo mkdir -p /opt/boxen
sudo chown ${USER}:staff /opt/boxen
  • Checkout the FAS RC Boxen repo into /opt/boxen/repo
git clone https://github.com/fasrc/boxen.git /opt/boxen/repo
  • 'cd' into the boxen repo directory and bootstrap your boxen! note you only need to run this long funky command once, after this, running boxen will work fine. At this point boxen should ask you for your github username and password, and start installing stuff.
cd /opt/boxen/repo
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future ./script/boxen --no-fde

You'll probably get an error something like the below, if you do, just ctrl-c out of the process and just run './script/boxen' to get puppet running again.

Error: Could not update: Execution of 'brew boxen-install boxen/brews/nginx' returned 1: ==> Installing nginx dependency: pcre
Installing pcre from S3...
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory
Warning: Bottle installation failed: building from source.
Warning: Nothing was installed to /opt/boxen/homebrew/Cellar/pcre/8.34
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory

Error: /Stage[main]/Nginx/Package[boxen/brews/nginx]/ensure: change from absent to 1.4.4-boxen1 failed: Could not update: Execution of 'brew boxen-install boxen/brews/nginx' returned 1: ==> Installing nginx dependency: pcre
Installing pcre from S3...
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory
Warning: Bottle installation failed: building from source.
Warning: Nothing was installed to /opt/boxen/homebrew/Cellar/pcre/8.34
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory
Notice: /Stage[main]/Nginx/Service[dev.nginx]: Dependency Package[boxen/brews/nginx] has failures: true
Warning: /Stage[main]/Nginx/Service[dev.nginx]: Skipping because of failed dependencies
Notice: /Stage[main]/Nginx/Service[dev.nginx]: Triggered 'refresh' from 3 events
Notice: /Stage[main]/Xquartz/Package[XQuartz]/ensure: created
Notice: /Stage[main]/Nginx/File[/opt/boxen/homebrew/etc/nginx]: Dependency Package[boxen/brews/nginx] has failures: true
Warning: /Stage[main]/Nginx/File[/opt/boxen/homebrew/etc/nginx]: Skipping because of failed dependencies
Notice: /Stage[main]/Textmate/Package[TextMate]/ensure: created
Notice: /Stage[main]/Chrome/Package[Chrome]/ensure: created
Notice: /Stage[main]/Virtualbox/Package[VirtualBox-4.3.8-92456]/ensure: created
Notice: /Stage[main]/Git/Package[boxen/brews/git]/ensure: created
Notice: Package[hub](provider=homebrew): Updating homebrew formulas
Notice: /Stage[main]/Hub/Package[hub]/ensure: created
Notice: /Stage[main]/Boxen::Bin/File[/opt/boxen/bin/boxen]/ensure: created
Notice: /Stage[main]/Iterm2::Stable/Package[iTerm]/ensure: created
Notice: /Stage[main]/Dnsmasq/Package[boxen/brews/dnsmasq]/ensure: created
Notice: /Stage[main]/Dnsmasq/Service[dev.dnsmasq]/ensure: ensure changed 'stopped' to 'running'

Once you get puppet running again, you'll still get the pcre error, but this time the puppet run will complete

Tims-Mac:repo alaric$ ./script/boxen
Boxen is up-to-date.
Notice: Compiled catalog for tims-mac.local in environment production in 4.44 seconds
Error: Could not update: Execution of 'brew boxen-install boxen/brews/nginx' returned 1: ==> Installing nginx dependency: pcre
Installing pcre from S3...
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory
Warning: Bottle installation failed: building from source.
Warning: Nothing was installed to /opt/boxen/homebrew/Cellar/pcre/8.34
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory

Error: /Stage[main]/Nginx/Package[boxen/brews/nginx]/ensure: change from absent to 1.4.4-boxen1 failed: Could not update: Execution of 'brew boxen-install boxen/brews/nginx' returned 1: ==> Installing nginx dependency: pcre
Installing pcre from S3...
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory
Warning: Bottle installation failed: building from source.
Warning: Nothing was installed to /opt/boxen/homebrew/Cellar/pcre/8.34
Error: /opt/boxen/homebrew/Cellar/pcre/8.34 is not a directory

Notice: /Stage[main]/Nginx/Service[dev.nginx]: Dependency Package[boxen/brews/nginx] has failures: true
Warning: /Stage[main]/Nginx/Service[dev.nginx]: Skipping because of failed dependencies
Notice: /Stage[main]/Nginx/File[/opt/boxen/homebrew/etc/nginx]: Dependency Package[boxen/brews/nginx] has failures: true
Warning: /Stage[main]/Nginx/File[/opt/boxen/homebrew/etc/nginx]: Skipping because of failed dependencies
Notice: Package[homebrew/versions/gcc48](provider=homebrew): Updating homebrew formulas
Notice: /Stage[main]/Gcc/Package[homebrew/versions/gcc48]/ensure: created
Notice: /Stage[main]//Node[default]/File[/Users/alaric/src/our-boxen]/ensure: created
  • To get rid of that error, after boxen completes, source in your .profile again to pull in the boxen env's
source ~/.profile 
  • Verify boxen works with 'boxen --env' from your terminal window, and if you see results, you can then use brew to fix the pcre error!
Tims-Mac:repo alaric$ brew install pcre
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pcre-8.34.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.34.mavericks.bottle.tar.gz
🍺  /opt/boxen/homebrew/Cellar/pcre/8.34: 146 files, 5.6M

And your done!

The errors are annoying, so hopefully we'll come up with an easy fix, but all in all pretty worth it for a quick easy way to load all your tools!