[mecab-users 337] Re: はじめまして and コンパイルエラー

Back to archive index

Tetsuro IKEDA ikdtt****@gmail*****
2008年 7月 17日 (木) 19:05:40 JST


こんにちは。池田と申します。

# いつもMeCabを使わせていただきありがとうございます。>開発者様

以下のログから推測するに、インストール先が/usr/local/lib/libmecab.soと
なっていて、ldの検索パスに入っていないのが原因ではないでしょうか。

環境変数LD_LIBRARY_PATHを設定するか、/etc/ld.so.confに/usr/local/libを
追加するか、あるいはmecabのビルド時に--prefix=/usrとかを指定して、
/usr/lib配下にlibmecab.soが入るようにすればいいような気がします。

2008/07/17 18:20 koyama <mlus****@hintm*****>:
> はじめまして、xeon-koyama と申します。
>
> 早速ですが、
>
> http://mecab.sourceforge.net/#install-unix
> の手順に従って、インストールしているのですが、
> mecab自体はちゃんとインストール完了したものの、
> ipa辞書のインストールの際に、エラーでインストールができません。
>
> エラーは以下のようなものです。
>
>
> duo:/usr/local/src/mecab-ipadic-2.7.0-20070801 # ./configure
> --with-charset=utf8
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets $(MAKE)... yes
> checking for working aclocal-1.4... missing
> checking for working autoconf... found
> checking for working automake-1.4... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for mecab-config... /usr/local/bin/mecab-config
> configure: creating ./config.status
> config.status: creating Makefile
> duo:/usr/local/src/mecab-ipadic-2.7.0-20070801 # sync
> duo:/usr/local/src/mecab-ipadic-2.7.0-20070801 # make
> /usr/local/libexec/mecab/mecab-dict-index -d . -o . -f EUC-JP -t utf8
> /usr/local/libexec/mecab/mecab-dict-index: error while loading shared
> libraries: libmecab.so.1: cannot open shared object file: No such file
> or directory
> make: *** [matrix.bin] エラー 127
>
>
>
> duo:/usr/local/src/mecab-ipadic-2.7.0-20070801 # ./configure
> --with-charset=utf8 --enable-utf8-only
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets $(MAKE)... yes
> checking for working aclocal-1.4... missing
> checking for working autoconf... found
> checking for working automake-1.4... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for mecab-config... /usr/local/bin/mecab-config
> configure: creating ./config.status
> config.status: creating Makefile
> duo:/usr/local/src/mecab-ipadic-2.7.0-20070801 # make
> /usr/local/libexec/mecab/mecab-dict-index -d . -o . -f EUC-JP -t utf8
> /usr/local/libexec/mecab/mecab-dict-index: error while loading shared
> libraries: libmecab.so.1: cannot open shared object file: No such file
> or directory
> make: *** [matrix.bin] エラー 127
>
>
> よろしくお願いします。
>
> _______________________________________________
> mecab-users mailing list
> mecab****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/mecab-users
>




mecab-users メーリングリストの案内
Back to archive index