Last active
December 18, 2016 08:23
-
-
Save ishida-m/7970097 to your computer and use it in GitHub Desktop.
mecab installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # wget http://mecab.googlecode.com/files/mecab-0.996.tar.gz | |
| curl -OL http://mecab.googlecode.com/files/mecab-0.996.tar.gz | |
| if [ -f mecab-0.996.tar.gz ]; then | |
| tar zxf mecab-0.996.tar.gz | |
| cd mecab-0.996 | |
| ./configure --with-charset="utf8" | |
| make | |
| sudo make install | |
| cd ../ | |
| rm mecab-0.996.tar.gz | |
| rm -rf mecab-0.996 | |
| else | |
| echo "mecab-0.996.tar.gzがありません" | |
| exit | |
| fi | |
| ### | |
| if [ `uname` = "Linux" ]; then | |
| sudo ldconfig | |
| fi | |
| # wget http://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz | |
| curl -OL http://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz | |
| if [ -f mecab-ipadic-2.7.0-20070801.tar.gz ]; then | |
| tar zxf mecab-ipadic-2.7.0-20070801.tar.gz | |
| cd mecab-ipadic-2.7.0-20070801 | |
| ./configure --with-charset="utf-8" | |
| make | |
| sudo make install | |
| cd ../ | |
| rm mecab-ipadic-2.7.0-20070801.tar.gz | |
| rm -rf mecab-ipadic-2.7.0-20070801 | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment