Archive pour March 25th, 2011
Comment installer Ruby on Rails sur Ubuntu 10.10
Comment installer Ruby on Rails sur 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
1
2
3
mkdir -p ~/work/ruby-install
cd ~/work/ruby-install
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
- Ajouter au .bashrc
1
[[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && . "$HOME/.rvm/src/rvm/scripts/rvm"
- Execute rvm and specify the version you want to use
1
.rvm/bin/rvm install 1.9.2
- Will return:
1
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
1
rvm --default 1.9.2
- Verify the version of Ruby
1
2
ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
- Verify the version of Gem
1
2
gem -v
1.6.2
1 2 3 | mkdir -p ~/work/ruby-install cd ~/work/ruby-install bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) |
1 | [[ -s "$HOME/.rvm/src/rvm/scripts/rvm" ]] && . "$HOME/.rvm/src/rvm/scripts/rvm" |
1 | .rvm/bin/rvm install 1.9.2 |
1 | Installing Ruby from source to: ~/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)... |
1 | rvm --default 1.9.2 |
1 2 | ruby -v ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] |
1 2 | gem -v
1.6.2 |
