目錄
sudo apt-get install ruby1.9.1
wget http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz tar zxvf rubygems-1.6.2.tgz cd rubygems-1.6.2/ sudo ruby setup.rb # gem1.8
ubuntu
$ sudo apt-get install ruby1.9.1 $ sudo apt-get install rubygems1.8