Created
June 3, 2012 01:52
-
-
Save mnewt/2860940 to your computer and use it in GitHub Desktop.
mac rails dev install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install xcode | |
#install xcode command line tools (from Xcode preferences) | |
#install osx-gcc-installer | |
#install homebrew | |
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" | |
#install rvm | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
source /Users/matt/.rvm/scripts/rvm | |
rvm requirements | |
brew install libksba | |
brew install autoconf | |
#ensure rvm is up to date | |
rvm get head | |
#install latest ruby | |
rvm cleanup all | |
rvm install 1.9.3 | |
#may need to specify compiler (because of Xcode 4.2+) | |
#rvm install 1.9.3 --with-gcc=clang | |
#type rvm | head -n1 #should say "rvm is a function" | |
rvm use 1.9.3 | |
rvm gemset create rails_3_2_2 | |
gem install rails | |
gem install bundler | |
which gem | |
gem list | |
ruby -v | |
rails -v | |
rvm use 1.9.3@rails_3_2_2 --default | |
#environment setup | |
#create .bash_profile (in separate note) | |
#install sublime text 2 | |
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl | |
gem update | |
gem update rails | |
cd proj_dir | |
bundle update | |
# http://tecparatodos.com/2011/07/24/installing-ruby-on-rails-on-mac-os-x-lion/ | |
# http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment