Skip to content

Instantly share code, notes, and snippets.

@tetlabo
Created December 21, 2022 11:25
Show Gist options
  • Save tetlabo/6b9218936c0eedcf54dfb67923a29688 to your computer and use it in GitHub Desktop.
Save tetlabo/6b9218936c0eedcf54dfb67923a29688 to your computer and use it in GitHub Desktop.
Posit CloudにMeCabをインストールするスクリプト
#!/bin/bash
# RStudioでファイルを開き、"Run Script" ボタンで実行してください
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