最近、Amazon Linuxを使っています。 標準のruby1.8のほか、ruby1.9のパッケージがあるのはいいんだけれど、alternativesの設定が見当たらなかった。。。 というわけで、alternativesの設定をしてバージョンを切り替えるようにしてみた。といっても基本的に切り替えないけどね。。。 # ruby1.9を入れる $ sudo yum install -y ruby19 rubygems19 # ruby1.9を入れてもそのままだと有効にならない $ ruby -v ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux] # alternativesにはなにもない。。。 $ sudo update-alternatives --display ruby # なのでaltenativesに自分で登録する $ su