ubuntu 12.04, 11.04 ruby1.9.x デフォルト以外のruby&gem

http://ygamretuta.me/2011/05/09/install-rvm-in-ubuntu-11-10-oneiric-ocelot-and-mac-osx/
https://rvm.io/rvm/install/

sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev

curl -L https://get.rvm.io | bash -s stable

source ~/.rvm/scripts/rvm

rvm install 1.9.3

rvm list

rvm --default 1.9.3

因みにrvmを使う場合はmagic quote

#!/usr/local/bin/ruby

を抜くこと。(ルビーインタープリタの位置が違う)トップは

# encoding: utf-8

スクリプト実効は ./xxxxx.rb ではなく ruby xxxxx.rb にする。

                                                                • -

rvm list known
xxx
yyy
zzz

rvm install xxx

ーーーーーーーーーーーーーーーーーーーーーーー
私の場合はrubyのコンパイル中に以下のエラーがが出る。

Error running 'make ', please read /home/johny/.rvm/log/ruby-1.9.3-p194/yaml/make.log

make.logを読んでlibtoolをインストールした後、再度インストールで成功。

このままだとgeditを使用しつづけると

RVM is not a function, selecting rubies with 'rvm use ...' will not work.
Please visit https://rvm.io/integration/gnome-terminal/ for a solution.

のエラーが出る。


そこで
set the 'Run command as login shell' checkbox on the Title and Command tab inside of gnome-terminal's
&&
rvm get [head|stable] --auto

https://rvm.io/integration/gnome-terminal/
https://rvm.io/support/faq/#shell_login