Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sionc
Created June 1, 2013 19:10
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 sionc/5691399 to your computer and use it in GitHub Desktop.
Save sionc/5691399 to your computer and use it in GitHub Desktop.
Instructions to install rails 4.0 and ruby 2.0 to create a new web app
# Install openssl to avoid getting an openssl error while creating a new app
# Check out http://goo.gl/HapK4 for more details
$ rvm pkg install openssl
$ rvm pkg install iconv
# Install ruby 2.0 using rvm
$ rvm install ruby-2.0.0-p195 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr
# Set ruby 2.0 as default
$ rvm use ruby-2.0.0-p195 --default
# Install rails
$ gem install rails --version 4.0.0.rc1 --no-ri --no-rdoc
# Create new rails app
$ rails new sample_app
# Open the app directory
$ cd sample_app
# Run db migrate
$ rake db:migrate
# Start the server
$ rails s
# You should see the default rails page when you go to http://localhost:3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment