Skip to content

Instantly share code, notes, and snippets.

@rishabhmhjn
Created August 2, 2013 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rishabhmhjn/6137456 to your computer and use it in GitHub Desktop.
Save rishabhmhjn/6137456 to your computer and use it in GitHub Desktop.
Ruby on rails installation manual
# Getting started with Ruby
# http://guides.rubyonrails.org/getting_started.html
# Install ruby
curl -L https://get.rvm.io | bash -s stable --ruby
# Install ruby 1.8.7, since rvm installs 1.8.7 as default
rvm install 1.9.3
rvm --default use 1.9.3
# Install rails & bundler
gem install rails
gem install bundler
# --- Test rails working ---
cd ~/WORK
# Create a new project - blog
rails new blog
cd blog/
# start server
rails server
## open localhost:3000
# Errors
## Can not find compiler and 'make' tool - make sure Xcode and/or Command Line Tools are installed.
# http://stackoverflow.com/questions/17006304/why-cant-rvm-find-compiler-and-make-tool-after-installing-xcode
#
# ## error installing rails
# $ sudo gem install rails
# Password:
# Building native extensions. This could take a while...
# ERROR: Error installing rails:
# activesupport requires Ruby version >= 1.9.3.
# $ ruby --version
# ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
#
# >> http://www.unfoldingcode.com/2012/02/ruby-193-via-rvm-on-mac-osx-lion.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment