chasen_getopt_argvが見つからないとき

macchasenをport installで入れた場合
extconf.rbでchasenが見つからない系のエラーが出る

>ruby extconf.rb
checking for main() in -lstdc++... yes
checking for chasen_getopt_argv() in -lchasen... no

これは--with-chasen-dirオプションでportのディレクトリを指定してやればよい

>ruby extconf.rb --with-chasen-dir=/opt/local

最初/usr/local以下を指定してたら、ppc用のライブラリらしい。。。