Skip to content

Instantly share code, notes, and snippets.

@rossnelson
Forked from laserlemon/Rails 3 Environment
Last active September 29, 2015 08:48
Show Gist options
  • Save rossnelson/1576288 to your computer and use it in GitHub Desktop.
Save rossnelson/1576288 to your computer and use it in GitHub Desktop.
Snow Leopard, Homebrew, Git, RVM, Ruby, Passenger, Apache, MySQL and ImageMagick
# 2012-01-07
#
# Mac OS X 10.6.8
# Homebrew 0.7
# Xcode 3.2.4
# Git 1.7.3.1
# RVM 1.0.12
# Ruby 1.9.2, 1.8.7
# Rails 3.0.0
# Passenger 3.0.0.pre4
# MySQL 5.1.49
# Memcached 1.4.5
# ImageMagick 6.6.4-5
# Install Snow Leopard.
# Dotfiles
echo "$(curl -fsS https://gist.github.com/rossnelson/7606758/raw/e5a5f57910aa29fb2e1f450a707194818e033b7b/.profile)" > ~/.profile
echo "$(curl -fsS https://gist.github.com/rossnelson/7606778/raw/edafb66f631268ceb557d43be8c291db22fc008c/.bashrc)" > ~/.bashrc
echo "$(curl -fsS https://gist.github.com/rossnelson/7606788/raw/f8510354e3682a5d001e84681ea109ea32fdc894/.bash_profile)" > ~/.bash_profile
echo "$(curl -fsS https://gist.github.com/rossnelson/7606796/raw/e43b0f988953ae3a84b00331d0ccf5f7d51cb3cf/.gitignore)" > ~/.gitignore
echo "$(curl -fsS https://gist.github.com/rossnelson/7606802/raw/3926f5ad5950d4335e195b4d4aacb624d160e058/.rvmrc)" > ~/.rvmrc
# Close Terminal window.
# Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
# Xcode
# Download Xcode 3.2.4 from developer.apple.com
# Set your system time to 1st January 2012 or earlier (but not too early), as the certificate that signed the package has expired.
# Software Update
# You'll have to do it a few times to get back up to speed.
#check brew requirements
brew doctor
# Git
brew install git
brew update
brew upgrade
# RVM
curl -L https://get.rvm.io | bash
rvm install 1.9.3
rvm 1.9.3 --default
# confirm ruby with
ruby -v
# Passenger
rvm gemset use global
gem install passenger --pre
passenger-install-apache2-module
# Follow instructions.
sudo apachectl restart
# MySQL
brew install mysql
# follow the directions at the end of the install
# if launching at startup confirm lauchd laoded it:
launchctl list | grep mysql
# or
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