Renoir Boulanger Un geek social et Linuxien de nature

Comment installer Ruby on Rails sur Ubuntu 10.10

Voici comment j'ai fait pour installer Ruby on Rails version 1.9.2p180 a partir de RVM avec Gem 1.6.2 sur ma station de travail Ubuntu 10.10

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

Comments

  1. Eric Hogue

    J’ai appris ce qu’est RVM dernièrement. C’est vraiment cool de pouvoir changer de version comme ca. J’aimerais avoir quelque chose dans ce genre pour php.

    • Renoir Boulanger

      Tu dis. C’est tellement laborieux faire pareil avec Apache et PHP. La seule solution similaire serait d’utiliser le concept fastcgi et un serveur similaire a lighthttpd et ou NGINX

Comments are closed.