/usr/bin/gem に1.3.5がすでに入っている。
1.3.5ではなく1.3.7以降を入れたいなら、MacPortsでインストール
% sudo port install rb-rubygems ---> Computing dependencies for rb-rubygems ---> Dependencies to be installed: ruby ---> Fetching ruby ---> Verifying checksum(s) for ruby ---> Extracting ruby ---> Applying patches to ruby ---> Configuring ruby ---> Building ruby ---> Staging ruby into destroot ---> Installing ruby @1.8.7-p302_0+thread_hooks ---> Activating ruby @1.8.7-p302_0+thread_hooks ---> Cleaning ruby ---> Fetching rb-rubygems ---> Attempting to fetch rubygems-1.3.7.tgz from http://distfiles.macports.org/ruby ---> Verifying checksum(s) for rb-rubygems ---> Extracting rb-rubygems ---> Applying patches to rb-rubygems ---> Configuring rb-rubygems ---> Building rb-rubygems ---> Staging rb-rubygems into destroot ---> Installing rb-rubygems @1.3.7_0+ruby ---> Activating rb-rubygems @1.3.7_0+ruby ---> Cleaning rb-rubygems
MacPortsを使わず、以下のようにやる方法もある。
$ cd $ curl -O http://files.ruby.inoack.com/rubygems/rubygems-0.9.5.tgz $ Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 220k 100 220k 0 0 69109 0 0:00:03 0:00:03 --:--:-- 93786 $ tar xfz rubygems-0.9.5.tgz $ cd rubygems-0.9.5 $ sudo ruby setup.rb Password: