Skip to content

Instantly share code, notes, and snippets.

@rossnelson
Last active October 13, 2015 06:57
Show Gist options
  • Save rossnelson/4156449 to your computer and use it in GitHub Desktop.
Save rossnelson/4156449 to your computer and use it in GitHub Desktop.
Mountain Lion, Xcode, GIT, RVM, Passenger, Mysql, ImageMagick

2012-01-15

  • Mac OS X 10.8
  • Homebrew
  • Apple Command Line Tools
  • ZSH
  • Git
  • RVM
  • Ruby 1.9.3
  • Passenger
  • MySQL
  • ImageMagick

Install Mountain Lion.

Dotfiles

curl -L http://simian.us/psnfxzqh > ~/.profile
curl -L http://simian.us/bzqiywel > ~/.bashrc
curl -L http://simian.us/rliqzjfm > ~/.bash_profile
curl -L http://simian.us/cwkaetxl > ~/.gitignore
curl -L http://simian.us/rqtdphoj > ~/.rvmrc

Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Command Line Tools

Download Apple's Command Line Tools
Login here
Search for "Command Line Tools"

xQuartz

Download and install xQuartz here

Terminfo Dir

my /usr/share/terminfo dir was somehow corrupted, throwing this
error "Error opening terminal: xterm-256color" when I opened the terminal
Replacing the current terminfo dir with this repo fixed it.

Software Update

You'll have to do it a few times to get back up to speed.

ZSH

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
curl https://raw.github.com/gist/1618992 > ~/.zshrc

Git

brew install git
brew update
brew upgrade

RVM

\curl -sSL https://get.rvm.io | bash -s stable
rvm install 1.9.3
rvm 1.9.3 --default

confirm ruby with

ruby -v

Passenger

rvm gemset use global
gem install passenger
passenger-install-apache2-module

Follow instructions.

sudo apachectl restart

MySQL

brew install mysql
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

This will start MYSQL on boot

cp /usr/local/Cellar/mysql/#{whatever-version}/com.mysql.mysqld.plist /Library/LaunchDaemons
launchctl load /Library/LaunchDaemons/com.mysql.mysqld.plist

Confirm with:

launchctl list | grep mysql
mysql.server start

ImageMagick

brew install imagemagick

Reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment