RubyGems のバージョンアップ

RubyGems そのもの本体のバージョンアップ方法が RubyGems のサイトに書いてありますが、Ubuntu 8.10 でこの手順通りにやったらエラーになってしまいました。

3.3 Updating RubyGems

$ 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 update --system は使えなくなってるらしい。aptitude か apt-get 使ってくれということらしい。

これかな?#452547 - rubygems: Disable gem update --system - Debian Bug report logs

Google してみると、関係ないけどこんなバグがあったらしい。

[Rubygems-developers] [ANN] RubyGems 1.3.0

...省略...
Note!  Some versions of RubyGems have a bug that will prevent  
automatic updates.  If RubyGems says it has nothing to update, run:

   $ gem install rubygems-update
   $ update_rubygems

= Announce: RubyGems Release 1.3.0

Release 1.3.0 adds new features and fixes some bugs.

New features:
...省略...

上記手順を試してみると、バージョンアップ出来てしまった。

$ sudo gem install rubygems-update
$ sudo /var/lib/gems/1.8/bin/update_rubygems
$ gem --version
1.3.1

そして、上記を実行すると disabled になってたはずの gem update --system が動くようになっている。いいんだろうか。

$ sudo gem update --system
Updating RubyGems
Nothing to update

まぁ、気にしないことにする。


RubyGems - Ruby のパッケージ管理システム


CategoryRubyGems

ボンノウドットコム Wiki: RubyGems のバージョンアップ (last edited 2008-12-08 11:07:28 by JunKikuchi)

このサイトに関するお問い合わせは kikuchi@bonnou.com までお願いします