Harukaのnote

Linuxやプログラミング,写真,旅行等の記録帳

WSL SUSE Leap 42 でmecab-ipadicのmakeエラー

前に書いた以下の記事に似ていますが、今回はWindows Subsystem Linux(WSL)で同様のエラーが。

/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.2: cannot open shared object file: No such file or directory
Makefile:253: recipe for target 'matrix.bin' failed
make: *** [matrix.bin] Error 127

haruka0000.hatenablog.com

解決策

Libのパスを認識できなくて、コンパイルできないらしい。
~/.bashrcを開き、以下のPathを追記します。

export LD_LIBRARY_PATH=/usr/local/lib

これでmake通ると思います。

おわり。