How to Install Rails on Mac OS X Lion
You know that new-car smell a computer has when it’s just been unboxed and you’re booting it up for the first time? That smell always make me think: it’s time to set-up development environments!
Here’s a simple script I put together to install Ruby on Rails on Mac OS X Lion based on instructions that Alain Beauvois posted to Stack Overflow. It requires that you’ve already installed Xcode. Hope you find this helpful!
This file contains hidden or 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
#!/bin/sh | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
source ~/.bash_profile | |
rvm install 1.9.2 | |
rvm --default 1.9.2 | |
gem update | |
gem install rails |