Skip to content

Instantly share code, notes, and snippets.

@tors
Forked from jpantuso/osx_lion_rail_setup.md
Created December 28, 2012 07:05
Show Gist options
  • Save tors/4395243 to your computer and use it in GitHub Desktop.
Save tors/4395243 to your computer and use it in GitHub Desktop.

Setup new Mac with OSX Lion from scratch

These commands are good as of 2011-07-27.

Install xcode 4

App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.

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

Note that Xcode is a pre-req for Homebrew

SCM

Git

brew install git

http://help.github.com/mac-set-up-git/

Copy over your SSH Keys from your existing machine if you have them and want to carry over your existing SSH configs.

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

Install ruby

rvm install 1.9.3
rvm notes

See if there is anything in the rvm notes you need to take action on. As of this writing the compiler needs to be overridden. Create a .gemrc file and add the line gem: --no-ri --no-rdoc

rvm --default 1.8.7
rvmsudo gem install bundler
rvmsudo gem install rails

mysql

Get a DMG based and pre-compiled install from http://www.mysql.com/downloads/mysql/

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