0 투표
컴퓨터,인터넷
mecab 설치방법 알려주세요.

1 답변

0 투표
[root@localhost etc]# wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz

[root@localhost etc]# tar xvfp mecab-0.996.tar.gz
mecab-0.996/
mecab-0.996/mecabrc.in
mecab-0.996/LGPL
mecab-0.996/Makefile.train
mecab-0.996/INSTALL
mecab-0.996/man/

[root@localhost etc]# cd mecab-0.996

[root@localhost mecab-0.996]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes

[root@localhost mecab-0.996]# make

[root@localhost mecab-0.996]# make install

 

https://bitbucket.org/eunjeon/mecab-ko/

https://bitbucket.org/eunjeon/mecab-ko/downloads

[root@localhost etc]# wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.1.tar.gz

[root@localhost etc]# cd mecab-0.996-ko-0.9.1

[root@localhost mecab-0.996-ko-0.9.1]# ./configure

[root@localhost mecab-0.996-ko-0.9.1]# make

[root@localhost mecab-0.996-ko-0.9.1]# make install

https://bitbucket.org/eunjeon/mecab-ko-dic/downloads

[root@localhost]# wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-1.6.1-20140814.tar.gz

[root@localhost etc]# tar zxfv mecab-ko-dic-1.6.1-20140814.tar.gz

[root@localhost etc]# cd mecab-ko-dic-1.6.1-20140814

[root@localhost mecab-ko-dic-1.6.1-20140814]# ./configure

[root@localhost mecab-ko-dic-1.6.1-20140814]# make

done!
echo To enable dictionary, rewrite /usr/local/etc/mecabrc as \"dicdir = /usr/local/lib/mecab/dic/mecab-ko-dic

[root@localhost mecab-ko-dic-1.6.1-20140814]# make install

 

[root@localhost etc]# git clone https://github.com/rsky/php-mecab

[root@localhost etc]# cd php-mecab/

[root@localhost etc]# cd mecab/

[root@localhost mecab]# ./configure --with-php-config=/usr/local/php/bin/php-config

configure: error: mecab-config not found php-mecab

Call to undefined function mecab_new

구로역 맛집 시흥동 맛집
이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.
...