kdrkdrkdr commited on
Commit
24e433e
1 Parent(s): 35b8bdf

add mecab.sh

Browse files
Files changed (1) hide show
  1. mecab.sh +39 -0
mecab.sh ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/bash
2
+ #
3
+ # Original author: Lucy Park
4
+ # Edited by: nyanye
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ os=$(uname)
20
+
21
+ if [ $os == "Linux" ]; then
22
+ echo "Installing MeCab-ko"
23
+ elif [ $os == "Darwin" ]; then
24
+ echo "Installing MeCab-ko"
25
+ else
26
+ echo "This script does not support this OS."
27
+ exit 0
28
+ fi
29
+
30
+ # install mecab-ko
31
+ cd /tmp
32
+ curl -LO https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz
33
+ tar zxfv mecab-0.996-ko-0.9.2.tar.gz
34
+ cd mecab-0.996-ko-0.9.2
35
+ ./configure
36
+ make
37
+ make check
38
+ sudo make install
39
+ sudo ldconfig # In case of error: libmecab.so.2: cannot open shared object file: No such file or directory