etc
mecab 설치 (with centos 7)
은둔한량
2023. 11. 21. 18:37
반응형
1. mecab-ko 설치
wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.2.tar.gz
tar xvfz mecab-0.996-ko-0.9.2.tar.gz
cd mecab-0.996-ko-0.9.2
./configure
make
make check
make install
mecab --version
2. mecab-dic 설치
wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.1.1-20180720.tar.gz
tar xvfz mecab-ko-dic-2.1.1-20180720.tar.gz
cd mecab-ko-dic-2.1.1-20180720
./configure
make
make install
$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/user/Downloads/mecab-ko-dic-2.1.1-20180720/missing --run aclocal-1.11
/Users/user/Downloads/mecab-ko-dic-2.1.1-20180720/missing: line 52: aclocal-1.11: command not found
WARNING: `aclocal-1.11' is missing on your system. You should only need it if
you modified `acinclude.m4' or `configure.ac'. You might want
to install the `Automake' and `Perl' packages. Grab them from
any GNU archive site.
cd . && /bin/sh /Users/user/Downloads/mecab-ko-dic-2.1.1-20180720/missing --run automake-1.11 --gnu
/Users/user/Downloads/mecab-ko-dic-2.1.1-20180720/missing: line 52: automake-1.11: command not found
WARNING: `automake-1.11' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/user/Downloads/mecab-ko-dic-2.1.1-20180720/missing --run autoconf
configure.ac:2: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
에러가 발생하였다. 찾아보니 해결하신분이 계셔서 따라해봤다.
tar xvfz mecab-ko-dic-2.1.1-20180720.tar.gz
cd mecab-ko-dic-2.1.1-20180720
wget https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh
autoreconf
./configure
make
sudo make install
3. mecab 설치 확인
mecab -d /usr/local/lib/mecab/dic/mecab-ko-dic
아버지가 방에 들어가셨다.
반응형