Hatena::ブログ(Diary)

satoru.netの自由帳 このページをアンテナに追加 RSSフィード

180626Tueday

mecab memo

yum -y install mecab mecab-ipadic mecab-devel
cpanm Text::MeCab

160525Wedday

mecab install

mecab install centos

yum -y install gcc-c++

cd /usr/local/src/
wget http://mecab.googlecode.com/files/mecab-0.996.tar.gz
tar xzvfp mecab-0.996.tar.gz 
cd mecab-0.996/
./configure
make ; make install

cd /usr/local/src/
wget http://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz 
tar xvf mecab-ipadic-2.7.0-20070801.tar.gz 
cd mecab-ipadic-2.7.0-20070801/
./configure --with-charset=utf8
make ; make install

echo 'export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"' >> ~/.bashrc
source ~/.bashrc
cpan Text::MeCab

>pathはそのまま
>[utf-8]を指定する

©satoru.net
Mail Twitter