IIS de OSS 64bit > Windows+KVS OSS一覧 > Windows ROMAインストールドキュメント
このROMAの稼動は失敗しています。失敗実績としての記録となります。
このアプリはRubyで動くDBですのでIISは必要ありません。
ROMAは楽天が開発したオープンソースの分散データベースシステムです。
概要 †
OSS名 (Name) | バージョン (Version) | 言語 (Lang) | 動作チェック (Check) | 公式サイト (Official) |
ROMA | 0.8.0 | Ruby1.9.1 | 失敗 | ■ |
準備 †
- Rubyの1.9.1のOne-Click-install(テクノロジープレビュー版)をインストールしておく
- eventmachineの0.12.10をインストールしておく
- eventmachineのwindowsバイナリ版をダウンロードしておく
cd C:\ruby\1.9.1\bin
gem install eventmachine --local
- Windowsファイアウォールで通信するポートを開放しておく(今回は11211と11212)
- 動作確認のためにWindows Telnetクライアントをインストールしておく(「サーバーマネージャー > 機能 > 機能の追加」)
ダウンロード・展開 †
- 公式ダウンロードサイトにアクセス
- 「Downloads」をクリック
- 「v0.8.0」の「zip」をクリックしダウンロード
- ダウンロードしたファイル「roma-roma-ce4ccb9.zip」を展開
- 展開して出来た「roma-roma-ce4ccb9」フォルダをフォルダごと「C:」にコピー
ルーティングファイル作成 †
- コマンドプロンプトを起動
- ROMAのあるディレクトリ内の「ruby\server\bin」に移動
cd C:\roma-roma-ce4ccb9\ruby\server\bin
- 以下のコマンドを入力
C:\ruby\1.9.1\bin\ruby.exe mkroute localhost_11211 localhost_11212 --enabled_repeathost
- カレントディレクトリに「localhost_11211.route」と「localhost_11212.route」が作成されたことを確認する
サーバー起動 †
- コマンドプロンプトを起動
- ROMAのあるディレクトリ内の「ruby\server\bin」に移動
cd C:\roma-roma-ce4ccb9\ruby\server\bin
- 以下のコマンドを入力
C:\ruby\1.9.1one\bin\ruby.exe romad -p 11211 -d --enabled_repeathost
ここでrubyeventmachine.soのsegmentation faultで落ちてしまう。。。
動作確認 †
- コマンドプロンプトを起動
- telnetでlocalhostに接続
telnet localhost 11211
set foo 0 0 3
bar
get foo
balse
こちらは未確認
備考 †
- Ruby1.8系でサーバー起動時に出るエラー
C:\roma-roma-ce4ccb9\ruby\server\bin>C:\ruby\1.8.6\bin\ruby.exe romad localhost -p 11211 -d --enabled_repeathost
C:/roma-roma-ce4ccb9/ruby/server/bin/../lib/roma/romad.rb:539:in `fork': fork() function is unimplemented on this mache (NotImplementedError)
from C:/roma-roma-ce4ccb9/ruby/server/bin/../lib/roma/romad.rb:539:in `daemon'
from C:/roma-roma-ce4ccb9/ruby/server/bin/../lib/roma/romad.rb:564
from C:/ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from C:/ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from romad:7
- Ruby1.9.1のテクノロジープレビュー版で出るエラー
C:\roma-roma-ce4ccb9\ruby\server\bin>C:\ruby\1.9.1\bin\ruby.exe romad -p 11211 -d --enabled_repeathost
C:/ruby/1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10-x86-mswin32-60/lib/rubyeventmachine.so: [BUG] Segmentatio
n fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]
-- control frame ----------
c:0020 p:-10796852 s:0053 b:0053 l:000052 d:000052 TOP
c:0019 p:---- s:0051 b:0051 l:000050 d:000050 CFUNC :require
c:0018 p:0146 s:0047 b:0047 l:000046 d:000046 TOP C:/ruby/1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/
eventmachine.rb:66
c:0017 p:---- s:0045 b:0045 l:000044 d:000044 FINISH
c:0016 p:---- s:0043 b:0043 l:000042 d:000042 CFUNC :require
c:0015 p:0011 s:0039 b:0039 l:000038 d:000038 TOP C:/roma-roma-ce4ccb9/ruby/server/lib/roma/event/handler.rb:4
c:0014 p:---- s:0037 b:0037 l:000036 d:000036 FINISH
c:0013 p:---- s:0035 b:0035 l:000034 d:000034 CFUNC :require
c:0012 p:0035 s:0031 b:0031 l:000030 d:000030 TOP C:/roma-roma-ce4ccb9/ruby/server/lib/roma/command/receiver.rb:3
c:0011 p:---- s:0029 b:0029 l:000028 d:000028 FINISH
c:0010 p:---- s:0027 b:0027 l:000026 d:000026 CFUNC :require
c:0009 p:0035 s:0023 b:0023 l:000022 d:000022 TOP C:/roma-roma-ce4ccb9/ruby/server/lib/roma/cron.rb:3
c:0008 p:---- s:0021 b:0021 l:000020 d:000020 FINISH
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :require
c:0006 p:0059 s:0015 b:0015 l:000014 d:000014 TOP C:/roma-roma-ce4ccb9/ruby/server/lib/roma/romad.rb:8
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :require
c:0003 p:0068 s:0007 b:0007 l:000d1c d:001ff8 EVAL romad:7
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000d1c d:000d1c TOP
---------------------------
-- Ruby level backtrace information-----------------------------------------
C:/ruby/1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:66:in `require'
C:/ruby/1.9.1/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:66:in `<top (required)>'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/event/handler.rb:4:in `require'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/event/handler.rb:4:in `<top (required)>'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/command/receiver.rb:3:in `require'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/command/receiver.rb:3:in `<top (required)>'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/cron.rb:3:in `require'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/cron.rb:3:in `<top (required)>'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/romad.rb:8:in `require'
C:/roma-roma-ce4ccb9/ruby/server/lib/roma/romad.rb:8:in `<top (required)>'
romad:7:in `require'
romad:7:in `<main>'
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
コメント †
他のOSS †
前のOSS:MyNETS
次のOSS:OpenPNE