Skip to content

Instantly share code, notes, and snippets.

@gledsoncruz
Created March 13, 2014 13:36
Show Gist options
  • Save gledsoncruz/9528615 to your computer and use it in GitHub Desktop.
Save gledsoncruz/9528615 to your computer and use it in GitHub Desktop.
Instalação do rubyOnRails rvm mac os
# Make sure xCode 4.3 is installed first!!!
# Command line tools no longer come bundled with xCode, install it by going to:
preferences -> downloads -> command line tools
# Install RVM
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# Then restart terminal
# Install Ruby 1.9.3 through RVM (need to specify clang compiler)
rvm install 1.9.3 --with-gcc=clang
# Switch from System's Ruby config to our desired Ruby config (and associated gems)
rvm use 1.9.3
# Install latest sqlite3 on this config
gem install sqlite3
# Install Rails on this config
sudo gem install rails
# Make a test app
rails new testapp
# If everything works, you're good to go!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment