This is a update from how I setup OS X Mavericks years ago. Basically, it is more for my own reference, but that post seemed to be helpful to some others.
These are the steps I took to setup a new OS X 10.10.3 (Yosemite) 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.
http://brew.sh/
gpg -o key.tar.gz --decrypt latest_keys.tar.gz.gpg
brew install zsh
zsh
git clone [email protected]:danmayer/dotfiles.git
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
xcode-select --install
tar czf key.tar.gz .ssh/
gpg -c key.tar.gz
gpg -o key.tar.gz --decrypt latest_keys.tar.gz.gpg
tar xvzf key.tar.gz
Faraday::SSLError: SSL_connect returned=1 errno=0 state=unknown state: certificate verify failed
brew install openssl
brew link openssl --force
rbenv rehash
install iterm2
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