Skip to content

Instantly share code, notes, and snippets.

@tetlabo
Created October 29, 2021 14:27
Show Gist options
  • Save tetlabo/22730c2fbc54ced7f11d6c163cbc9111 to your computer and use it in GitHub Desktop.
Save tetlabo/22730c2fbc54ced7f11d6c163cbc9111 to your computer and use it in GitHub Desktop.
RStudio CloudにMeCabをインストールする手順
# RStudioの "Terminal" での作業
cd $HOME
wget -Omecab-0.996.tar.gz 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7cENtOXlicTFaRUE'
wget -Omecab-ipadic-2.7.0-20070801.tar.gz 'https://drive.google.com/uc?export=download&id=0B4y35FiV1wh7MWVlSDBCSXZMTXM'
tar xzvf mecab-0.996.tar.gz
cd mecab-0.996
./configure --enable-utf8-only --prefix=$HOME/usr/local
make
make install
cd
export PATH=$PATH:$HOME/usr/local/bin
tar xzvf mecab-ipadic-2.7.0-20070801.tar.gz
cd mecab-ipadic-2.7.0-20070801
./configure --with-charset=utf8 --prefix=$HOME/usr/local
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment