miércoles, agosto 21, 2013

Ruby, Rails running in Mac: Mountain Lion


I have installed Ruby and Rails in Mac and I want to keep it here.

I have read a few tutorials and I think I have this working :)

A few things to do in the Terminal:

Installing Homebrew

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

Installing RVM

\curl -L https://get.rvm.io | bash -s stable

Close and reopen Terminal

Installing Xcode

Install Xcode via App Store

Installing Command Line tools

Open Xcode, go to Preferences -> Downloads -> Components and install the Command Line tools
Installing Ruby

rvm install 1.9.3

Set that ruby as your default

rvm --default use 1.9.3

Update your gems

gem update --system 1.8.24

Installing Rails

gem install rails -v 3.2.14 

Done, working!

3 comentarios:

Francisco dijo...

rbenv works better than RVM and it is easier o use unless you have quite some specific use cases (servers normally)


In addition to that it is better structured and it can be extended with plugins (you have quite some of them here https://github.com/sstephenson/rbenv/wiki/Plugins)

Francisco dijo...

Oh! and very last rails on 3.2.x is rails 3.2.14, much better to use it than 3.2.3 since normally it includes quite a lot of small improvements and security updates.

Miguel Jesús Fernández López dijo...

awesome, thanks!