Skip to content

Instantly share code, notes, and snippets.

@nmenag
Last active August 29, 2015 14:07
Show Gist options
  • Save nmenag/671bef5e92efff0da1ee to your computer and use it in GitHub Desktop.
Save nmenag/671bef5e92efff0da1ee to your computer and use it in GitHub Desktop.
Install Ruby and Ruby On rails in linux
  1. Install via RVM(Ruby version manager)

install RVM

-sudo apt-get install curl
- gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
-\curl -sSL https://get.rvm.io | bash -s stable

Load RVM

source ~/.rvm/scripts/rvm

Check RVM Requirements

 -rvm requirements
  1. Install ruby

 rvm install ruby
 rvm --default use 2.1.2(latest version)

Notes: for the step 2, The terminal should is enabled to run the command gnome-terminal more info: https://rvm.io/integration/gnome-terminal

  1. Install ruby Gems

 rvm rubygems current
  1. Install Ruby on rails

gem install rails
apt-get install nodejs(distributions based on Debian)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment