ebextensionsに以下の設定ファイルを追加します。
.ebextensions/mecab.config
commands:
000_install_mecab:
test: test ! -d mecab-0.996
command: |
wget 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE' -O mecab-0.996.tar.gz
tar xzf mecab-0.996.tar.gz
cd mecab-0.996
./configure
make
make check
sudo make install
cd ~
001_install_mecab_dic:
test: test ! -d mecab-ipadic-2.7.0-20070801.tar.gz
command: |
wget -O mecab-ipadic-2.7.0-20070801.tar.gz "https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM"
tar zxvf mecab-ipadic-2.7.0-20070801.tar.gz
cd mecab-ipadic-2.7.0-20070801
./configure --with-charset=utf8
make
sudo make install
cd ~