[groonga-dev,00428] Re: rroongaのWindows用コンパイル済みgemを作りました

Back to archive index

ongaeshi ongaeshi ongae****@gmail*****
2010年 12月 31日 (金) 15:03:56 JST


ongaeshiです。

2010年12月31日11:58 Kouhei Sutou <kou****@clear*****>:

> 須藤です。
>
> > rroongaのWindows用コンパイル済みgemを作ってみました。
> > rroongaで作成したアプリケーションをWindowsでも動かせます。
>
> おぉ!
> すばらしい!
>

ありがとうございます。 ^_^


Rubyとrroongaは32bit版でgroongaは64bit版なんですよね?
> すごいです!
>

そういうことになるんですかね?

Windows用gemの作り方メモ - rroonga - GitHub
https://github.com/ongaeshi/rroonga/wiki/Windows%e7%94%a8gem%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9%e3%83%a1%e3%83%a2

この手順に沿ってやっただけなので、
grooongaが64bit版かどうかは意識していませんでした・・・。
それがすごいことかどうかも実は分かってないです(汗)。


> Rakeを動かしているRubyのRUBY_PLATFORMをみて、Windowsなら
> cross_compile = trueしないようにすればマージできそうな気がし
> ます!
>

マージ出来るか、考えてみます。

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

別件ですが、OSXで rroonga-1.0.8 をgem install したら、エラーが起きてしまいました。
以前はOSXは何も変更せずに動いたのですが・・・。

--- ここから ---
/Users/ongaeshi/Documents/gren/lib/mkgrendb/mkgrendb.rb:125:in `open': no
such file or directory: syscall error
'dlopen(/opt/local/lib/ruby/gems/1.8/gems/rroonga-1.0.8/vendor/local/lib/groonga/plugins/tokenizers/.libs/mecab.:
#<Groonga::Database id: <nil>, name: (anonymous), path:
</Users/ongaeshi/grendb2/grendb2.db>, domain: (nil), range: (nil), flags:
<>> (Groonga::NoSuchFileOrDirectory)
plugin.c:142: grn_plugin_open()
    from /Users/ongaeshi/Documents/gren/lib/mkgrendb/mkgrendb.rb:125:in
`db_open'
    from /Users/ongaeshi/Documents/gren/lib/mkgrendb/mkgrendb.rb:28:in
`update'
    from /Users/ongaeshi/Documents/gren/lib/mkgrendb/cli.rb:39:in `execute'
    from /Users/ongaeshi/Documents/gren/lib/mkgrendb/cli.rb:25:in `each'
    from /Users/ongaeshi/Documents/gren/lib/mkgrendb/cli.rb:25:in `execute'
    from /Users/ongaeshi/Documents/gren/bin/mkgrendb:11
--- ここまで ---

こんなエラーが出ます。何か分かる方いましたら、アドバイスをお願いします。

※ ちなみに、

/opt/local/lib/ruby/gems/1.8/gems/rroonga-1.0.8/vendor/local/lib/groonga/plugins/tokenizers/.libs/mecab.

というファイルは見つからず、

/opt/local/lib/ruby/gems/1.8/gems/rroonga-1.0.8/vendor/local/lib/groonga/plugins/tokenizers

というフォルダの下に、

mecab.a
mecab.la
mecab.so

が存在する状態です。

よろしくお願いします。

-- 
/*****************************
*****
 ongaeshi
 MAIL: ongae****@gmail*****
 WEB:  http://d.hatena.ne.jp/tuto0621/
 Twitter: http://twitter.com/ongaeshi
 ********************************/



groonga-dev メーリングリストの案内
Back to archive index