Skip to content

Instantly share code, notes, and snippets.

@jmvallet
Created March 23, 2012 14:08
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 jmvallet/2170961 to your computer and use it in GitHub Desktop.
Save jmvallet/2170961 to your computer and use it in GitHub Desktop.
rbenv install ruby on Ubuntu 11.10
# Development tools:
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential git-core curl libssl-dev libreadline6 libreadline6-dev zlib1g zlib1g-dev
# Pour passenger
sudo apt-get -y install libcurl4-openssl-dev
# Pour nokogiri
sudo apt-get -y install libxslt-dev libxml2-dev
# Installation de rbenv
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
# Installation de ruby-build
$ git clone git://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ sudo ./install.sh
# Installation de ruby 1.9.3-p125
rbenv install 1.9.3-p125
rbenv rehash
rbenv global 1.9.3-p125
# Pas de génération documentation lors de l'installation de gems par défaut
# Dans ~/.gemrc
gem: --no-ri --no-rdoc
# Extra : https://github.com/gmate/gmate
sudo apt-add-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install gedit-gmate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment