それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

WindowsのRuby(mswin32版)のGemをアップデートする。

Windows版はDebianと違ってCentosRedhatRubyと同じようにGemを更新できる。

C:\Windows\system32>gem update --system
    • systemオプションをつける。

うまくいかない場合はRubygemsソースコードもってくるとか

実行結果

C:\Windows\system32>gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.5
Updating RubyGems to 1.3.5
Installing RubyGems 1.3.5
RubyGems 1.3.5 installed

・ソ=== 1.3.5 / 2009-07-21

Bug fixes:

* Fix use of prerelease gems.
* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.

Deprecation Notices:

* Bulk index update is no longer supported (the code currently remains, but not
  the tests)
* Gem::manage_gems was removed in 1.3.3.
* Time::today was removed in 1.3.3.


------------------------------------------------------------------------------

RubyGems installed the following executables:
        C:/Users/takuya/ruby/bin/gem

特に問題はないみたい。

どうでもいいけどRubyの英語サイトと日本語サイトでWindows実行形式配布が違う

英語版ではOneClickInstallerが推奨なんでしょうかねぇ。(まあ中身同じだけどな)。Cygwin版を記載してないのね。

  1. Ruby 1.8.6 One-Click Installer (md5: 69945dfae60224cc64139c91e000590e) Stable version (recommended)
  2. Ruby 1.8.7-p72 Binary (md5: d4b04ba03a76dc70120fe96ffa22e5df) Stable version (recommended)
  3. Ruby 1.9.1-p376 Binary (md5: c12b4df115797a2f9766b56719805a12) Stable version (recommended)

Windows版Rubyバイナリ

  1. どれをダウンロードすればいいのかはMicrosoft Windows版のビルド環境による違いを参考にしてください。
  2. ActiveScriptRuby 安定版に幾つか便利なライブラリを加え、さらにRubyをCOMサーバとしても利用可能にしたもの。ベースはmswin32版
  3. One-Click Ruby Installer for Windows (英語) 安定版に多数の便利なライブラリを加えたもの。ベースはmswin32版
  4. Ruby-mswin32 mswin32版の安定版・開発版を随時提供
  5. cygwin,djgpp,mingw,mswin32