Skip to content

Instantly share code, notes, and snippets.

@ishida-m
Last active December 18, 2016 08:23
Show Gist options
  • Select an option

  • Save ishida-m/7970097 to your computer and use it in GitHub Desktop.

Select an option

Save ishida-m/7970097 to your computer and use it in GitHub Desktop.
mecab installer
#!/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