Posted on 16th 5月 2009No Responses
debianでrubygemsのupdate

debianでrubygemsをupdateするには、rubygems-update gemをインストールして、/var/lib/gems/1.8/bin/update_rubygemsを実行する。

debiany/lenny の rubygems パッケージは 1.2.0 とバージョンが古い。gem は gem update –system で gem 自体の update を行う機能を持っているが、debian ではパッケージポリシーで禁止されている。実行しても、以下の様なエラーで止まってしまう。

# gem update –system
ERROR:  While executing gem … (RuntimeError)
gem update –system is disabled on Debian. RubyGems can be updated using the official Debian repositories by aptitude or apt-get.

この場合、gemの中にrubygems-update があるので、インストールしupdateを実行すれば良い。

# gem install rubygems-update
Successfully installed rubygems-update-1.3.3
1 gem installed
# /var/lib/gems/1.8/bin/update_rubygems

Reference:

Comments
Leave a Response
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
*