Comment installer Ruby on Rails sur Ubuntu 10.10

Tags

Une note rapide de comment j'ai installé Ruby

Procédure

  • Créer le dossier de travail et y exécuter le script d'installation RVM
    mkdir -p ~/work/ruby-install
    cd ~/work/ruby-install
    bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
    
  • Ajouter au .bashrc
    [[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && . "$HOME/.rvm/src/rvm/scripts/rvm"
    
  • Execute rvm and specify the version you want to use
    .rvm/bin/rvm install 1.9.2
    
  • Will return:
    Installing Ruby from source to: ~/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)...
  • Set the lastely installed rvm as the default
    rvm --default 1.9.2
    
  • Verify the version of Ruby
     ruby -v
    ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
    
  • Verify the version of Gem
    gem -v
    1.6.2
    

Source