前に書いた以下の記事に似ていますが、今回は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
解決策
Libのパスを認識できなくて、コンパイルできないらしい。
~/.bashrcを開き、以下のPathを追記します。
export LD_LIBRARY_PATH=/usr/local/lib
これでmake通ると思います。
おわり。