Skip to content

Instantly share code, notes, and snippets.

@ts-3156
Forked from dtan4/mecab_install.sh
Last active October 7, 2016 07:19
Show Gist options
  • Save ts-3156/fe3328ecbfb096b166f1643fb369ad05 to your computer and use it in GitHub Desktop.
Save ts-3156/fe3328ecbfb096b166f1643fb369ad05 to your computer and use it in GitHub Desktop.
#!/bin/bash
base_dir=`pwd`
wget -O mecab-0.996.tar.gz "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE"
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 -O mecab-ipadic-2.7.0-20070801.tar.gz "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM"
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