Windows 2000 に Mongrel をインストール

さらに引き続いて、MongrelWindows 2000 にインストールしました。
MongrelをWindowsのサービスとして起動する - バリケンのRuby日記 - Rubyist を参考にしています。

mongrel-1.1.5-x86-mswin32-60.gem

RubyForge: Mongrel: ファイルリスト

> gem install mongrel-1.1.5-x86-mswin32-60.gem --local
ERROR:  While executing gem ... (RuntimeError)
    Error instaling mongrel-1.1.5-x86-mswin32-60.gem:
        mongrel requires gem_plugin >= 0.2.3

gem_plugin-0.2.3.gem

同じページから。

> gem install gem_plugin-0.2.3.gem --local
Successfully installed gem_plugin, version 0.2.3
Installing ri documentation for gem_plugin-0.2.3...
Installing RDoc documentation for gem_plugin-0.2.3...

> gem install mongrel-1.1.5-x86-mswin32-60.gem --local
ERROR:  While executing gem ... (RuntimeError)
    Error instaling mongrel-1.1.5-x86-mswin32-60.gem:
        mongrel requires cgi_multipart_eof_fix >= 2.4

cgi_multipart_eof_fix-2.5.0.gem

同じページから。

> gem install cgi_multipart_eof_fix-2.5.0.gem --local
Successfully installed cgi_multipart_eof_fix, version 2.5.0
Installing ri documentation for cgi_multipart_eof_fix-2.5.0...
Installing RDoc documentation for cgi_multipart_eof_fix-2.5.0...

> gem install mongrel-1.1.5-x86-mswin32-60.gem --local
Successfully installed mongrel, version 1.1.5
Installing ri documentation for mongrel-1.1.5-x86-mswin32-60...
Installing RDoc documentation for mongrel-1.1.5-x86-mswin32-60...

mongrel_service-0.3.4-i386-mswin32.gem

サービス化したいなら、これもインストール。
これは、win32-service-0.5.2 に依存しているのだけど、最新版が 0.6.1 だとかで、win32-service-0.5.2 (のi386コンパイル版?) が RubyForge 上で手に入らなかった。
しかたないので、ここだけリモートインストール。

> gem install mongrel_service
Bulk updating Gem source index for: http://gems.rubyforge.org
Select which gem to install for your platform (i386-mswin32)
 1. mongrel_service 0.3.4 (i386-mswin32)
 2. mongrel_service 0.3.3 (mswin32)
 3. mongrel_service 0.3.2 (mswin32)
 4. mongrel_service 0.3.1 (mswin32)
 5. Skip this gem
 6. Cancel installation
> 1
Install required dependency win32-service? [Yn]
Select which gem to install for your platform (i386-mswin32)
 1. win32-service 0.5.2 (mswin32)
 2. win32-service 0.5.2 (ruby)
 3. Skip this gem
 4. Cancel installation
> 1
Successfully installed mongrel_service-0.3.4-i386-mswin32
Successfully installed win32-service-0.5.2-mswin32
Installing ri documentation for mongrel_service-0.3.4-i386-mswin32...
Installing ri documentation for win32-service-0.5.2-mswin32...
Installing RDoc documentation for mongrel_service-0.3.4-i386-mswin32...
Installing RDoc documentation for win32-service-0.5.2-mswin32...

サービス化するには、下記のコマンド。

> mongrel_rails service::install -N "Redmine" -c D:\Rails\redmine
 -p 4000 -e production
** Copying native mongrel_service executable...
Mongrel service 'Redmine' installed as 'Redmine'.

これで、「サービス」の管理アプリで、Redmine のスタートアップの種類を「自動」にしておけば、Windows 起動と同時に Redmine を起動することができます。