[mecab] python mecab 설치

nooyji·2022년 5월 24일
0

$ tar zxfv mecab-0.996-ko-0.9.2.tar.gz
$ cd mecab-0.996-ko-0.9.2
$ ./configure
$ make
$ make check
$ sudo make install
$ sudo ldconfig

$ tar zxfv mecab-ko-dic-2.1.1-20180720.tar.gz
$ cd mecab-ko-dic-2.1.1-20180720
$ autoreconf
$ ./configure
$ make
$ sudo make install

$ unzip eunjeon-mecab-python-0.996-ac44c1e23785.zip
$ cd eunjeon-mecab-python-0.996-ac44c1e23785
$ python setup.py install

$ sudo chmod 755 /etc/ld.so.conf
$ sudo vim /etc/ld.so.conf

include ld.so.conf.d/*.conf
하단에 /usr/local/lib 추가
mecab-ko-dic-2.1.1-20180720 으로 이동 후
$ sudo ldconfig

0개의 댓글