忘れないうちにメモ:win32でgem(ruby)

ramazeやRoRを動かすときに必須なのがgem。
AspireOne環境に変わったのでrubyがつかえず、Windowsへの
再導入方も忘れかけてあせった.忘れないようにメモ。

準備するもの:

  1. rubyを導入しパスを通す。
  2. rubyをインストールしたフォルダにgemのパッケージを解凍する
  3. zlib.dllをruby.exeと同じディレクトリに配置
  4. あとは以下のコマンドでセットアップを実行するだけ。
cd rubygems-1.2.0
rubygems-1.2.0>ruby setup.rb
When filing a bug, `gem env` output will be helpful in diagnosing the issue.

If you find a bug where RubyGems crashes, please provide debug output. You can
do that with `gem --debug the_command`.

== Thanks

Keep those gems coming!

    • Jim & Chad & Eric (for the RubyGems team)
                                                                                                                                                          • -
RubyGems installed the following executables: C:/xxx/ruby/bin/gem If `gem` was installed by a previous RubyGems installation, you may need to remove it by hand. >gem RubyGems is a sophisticated package manager for Ruby. This is a basic help message containing pointers to more information. Usage: gem -h/--help gem -v/--version gem command [arguments...] [options...] Examples: gem install rake gem list --local gem build package.gemspec gem help install Further help: gem help commands list all 'gem' commands gem help examples show some examples of usage gem help platforms show information about platforms gem help show help on COMMAND (e.g. 'gem help install') Further information: http://rubygems.rubyforge.org

これでWindows上でgemが利用可能になりました。
Rubyを思いっきり活用しよう!