Skip to content

Ruby 2.0 Rails 4.0 en OS X 10.8.4

Gustavo Beathyate edited this page Jun 27, 2013 · 1 revision

1. Instala Xcode a través del Mac App Store

2. Abre Xcode, instala los pendientes.

3. Selecciona Xcode > Preferencias…

4. Instala los 'Command Line Tools' de Xcode

Xcode 4.6.3 Command Line Tools

5. Instala Homebrew

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

6. Instala openssl, readline, rbenv y ruby-build

$ brew install openssl readline rbenv ruby-build

7. Agrega esto en ~/.profile

eval "$(rbenv init -)"

8. Instala Ruby 2.0

$ env RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` CONFIGURE_OPTS=--with-readline-dir=`brew --prefix readline` rbenv install 2.0.0-p195

9. Define el ruby global

$ rbenv global 2.0.0-p195

10. Actualiza el sistema de gemas

$ gem update --system

11. Instala Rails 4.0

$ gem install rails

12. Profit!