Skip to content

Instantly share code, notes, and snippets.

@vincentpaca
Last active December 17, 2015 03:48
Show Gist options
  • Save vincentpaca/5545739 to your computer and use it in GitHub Desktop.
Save vincentpaca/5545739 to your computer and use it in GitHub Desktop.
RVM, Ruby and Rails on Ubuntu

RVM

Open terminal then run: sudo apt-get install curl

Install RVM with curl -L get.rvm.io | bash -s stable --auto

Reload bash with . ~/.bash_profile

Run: rvm requirements should be successful and give you a bunch of text

Then run:

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \
curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \
libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison  \
subversion pkg-config

RUBY

Run rvm install 1.9.3

Run rvm use 1.9.3

Running ruby -v should give you the correct ruby version

Run rvm --default use 1.9.3-pXXX 1.9.3pXXX should be the version result from ruby -v

RAILS

Run gem install rails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment