Skip to content

Instantly share code, notes, and snippets.

@ngs
Forked from dtan4/mecab_install.sh
Last active March 24, 2017 04:55
Show Gist options
  • Save ngs/0b5785020afca7701feab717c6a7603a to your computer and use it in GitHub Desktop.
Save ngs/0b5785020afca7701feab717c6a7603a to your computer and use it in GitHub Desktop.
#!/bin/bash
base_dir=`pwd`
curl -Lo 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
curl -Lo 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
mecab-config --libs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment