Forums: users (Thread #12870)

_Undefined_symbol_エラーが発生します。 (2006-11-17 11:57 by Anonymous #26049)

FreeBSD6.1でbsfilterを利用しようとしています。

実行すると

/libexec/ld-elf.so.1:_/usr/local/lib/ruby/site_ruby/1.8/i386-freebsd6/MeCab.so:_Undefined_symbol_"_ZN5MeCab12createTaggerEPKc"

のエラーが出てしまいます。

bsfilterのインストールはportsから行ない

bsfilter-1.0.15のインストール時にMeCabの利用にチェックし
mecab0.93
mecab-ipadic2.7.0
ruby18-mecab0.93
もあわせてインストールしています。

configには'jtokenizer MeCab'を指定しています。

configで'jtokenizer MeCab'の指定を削除して実行すると正常動作しますのでMeCabを利用している際にのみ発生するエラーのようです。

対策がわかりましたら教えてください。

Reply to #26049×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: _Undefined_symbol_エラーが発生します。 (2006-11-18 22:11 by nabeken #26077)

エラーの原因が分かりません。
bsfilter以外はportsから以下のようにインストールして、問題なく使えています。

~% uname -r
6.1-RELEASE
~% pkg_info | grep mecab
ja-mecab-0.93_1 Yet Another Part-of-Speech and Morphological Analyzer
ja-mecab-ipadic-2.7.0_1 Japanese Morphological Dictionary for MeCab
ja-ruby18-mecab-0.93 MeCab library module for Ruby
Reply to #26049

Reply to #26077×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login