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 ) |
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" |
[[ -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 |
.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)... |
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
- Verify the version of Ruby
ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] |
ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
- Verify the version of Gem
Source
Comments
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