These are the steps I took to setup a new OS X 10.9 (Mavericks) machine for development. I have heard on twitter that each time you setup a new machine you get 1% better and at this rate you can become good at it in a few hundred years! Ha while that seems to be true I am getting happier with the process and I am now at least trying to document it. This post won’t serve as a rich tutorial on the configuration process, but should give some ideas on good ways to setup your own machine or ideas on how to fix some common gotchas I ran into with my setup.
I know this is a very opinionated approach without much explanation, so if you are new to development I recommend finding richer tutorial as a this is largely intended for my own documentation.
xcode-select --install
Installing Boxen will take a long time, so you can continue any download and configuration steps while it runs although some things you want to install are dependent on Boxen completing.
cd our-boxen-master/
sudo mkdir -p /opt/boxen
sudo chown ${USER}:staff /opt/boxen
git clone https://github.com/boxen/our-boxen /opt/boxen/repo
cd /opt/boxen/repo
script/boxen
chsh -s /bin/zsh
ps -o comm $$
sudo easy_install Pygments
#my dotfiles use Pygmentsbrew install qt
brew update; brew install qt --HEAD
gem install thrift -v '0.9.0' -- --with-cppflags='-D_FORTIFY_SOURCE=0'
brew install Mysql55
initialize mysql:
mysql_install_db --verbose --user=`whoami` --basedir="/opt/boxen/homebrew/Cellar/mysql55/5.5.30/" --datadir=/opt/boxen/homebrew/var/mysql55 --tmpdir=/tmp
gem install mysql2 -v '0.2.18' -- --with-mysql-dir=/opt/boxen/homebrew/opt/mysql55/
brew install imagemagick
rbenv to get latest ruby 1.9.3-p484 thanks @obfuscurity
cd /opt/boxen/rbenv/plugins/ruby-build git pull; cd
rbenv install 1.9.3-p484
rbenv global 1.9.3-p484
gem install bundler
configure default global node.js nodenv global v0.10.21