Skip to content

Instantly share code, notes, and snippets.

@dtan4
Last active April 6, 2019 08:00
Show Gist options
  • Save dtan4/351d031bec0c3d45cd8f to your computer and use it in GitHub Desktop.
Save dtan4/351d031bec0c3d45cd8f to your computer and use it in GitHub Desktop.
#!/bin/bash
base_dir=`pwd`
wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz
tar zxfv mecab-0.996.tar.gz
cd mecab-0.996
./configure --enable-utf8-only
make
make check
sudo make install
sudo ldconfig
cd $base_dir
wget https://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz
tar zxfv mecab-ipadic-2.7.0-20070801.tar.gz
cd mecab-ipadic-2.7.0-20070801
./configure --with-charset=utf8
make
sudo make install
sudo ldconfig
cd $base_dir
rm -rf mecab-0.996 mecab-ipadic-2.7.0-20070801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment