Created
December 21, 2022 11:25
-
-
Save tetlabo/6b9218936c0eedcf54dfb67923a29688 to your computer and use it in GitHub Desktop.
Posit CloudにMeCabをインストールするスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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