Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Created November 28, 2010 22:51
Show Gist options
  • Save wolfeidau/719370 to your computer and use it in GitHub Desktop.
Save wolfeidau/719370 to your computer and use it in GitHub Desktop.
RVM Installation Guide
* Development Suite for Ubuntu
sudo apt-get install build-essential
* Git version control and curl http client utility
sudo apt-get install git-core
sudo apt-get install curl
* Core Development Libraries
sudo apt-get install zlib1g-dev
sudo apt-get install libssl-dev
sudo apt-get install libreadline-dev
* Nokogirl dependencies, which is an xml library used by RSpec
sudo apt-get install libxml2-dev
sudo apt-get install libxslt-dev
* SQLLite
sudo apt-get install sqlite3 libsqlite3-dev
* MySQL
sudo apt-get install mysql-client libmysqlclient-dev
* MySQL Server (optional)
sudo apt-get install mysql-server
* Run the following command to install RVM
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
* Append the following two lines to end your .bashrc file.
# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
* Source the .bashrc to make put the RVM command(s) in your path.
source .bashrc
* Install ruby 1.9.2
rvm install 1.9.2
* Enable 1.9.2
rvm 1.9.2
* Build a new gemset for your working stuff and enable it
rvm use 1.9.2@working --create
* List your default gems
gem list
* Install a few handy gems
gem install rails
gem install nokogiri
gem install sqlite3-ruby
gem install mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment