Skip to content

Instantly share code, notes, and snippets.

@rossnelson
Created January 16, 2012 01:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rossnelson/1618411 to your computer and use it in GitHub Desktop.
Save rossnelson/1618411 to your computer and use it in GitHub Desktop.
Lion, Xcode, GIT, RVM, Passenger, Mysql, ImageMagick

2012-01-15

  • Mac OS X 10.7.2
  • Homebrew 0.8.1
  • Apple Command Line Tools
  • ZSH
  • Git 1.7.5.4
  • RVM 1.10.1
  • Ruby 1.9.3
  • Passenger 3.0.11
  • MySQL 5.5.15
  • ImageMagick 6.7.1-1

Install Lion.

Dotfiles

curl https://raw.github.com/gist/606100 > ~/.profile
curl https://raw.github.com/gist/606087 > ~/.bashrc
curl https://raw.github.com/gist/606102 > ~/.bash_profile
curl https://raw.github.com/gist/606107 > ~/.gitignore
curl https://raw.github.com/gist/606105 > ~/.rvmrc

Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

Xcode

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

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

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
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