Ubuntu installs Japanese word breaker software mecab and its Python plugin

Source: Internet
Author: User

1. Download three packages from the official website:

http://taku910.github.io/mecab/

mecab-0.996 mecab-0.996.tar.gz mecab-ipadic-2.7.0-20070801 mecab-ipadic-2.7.0-20070801.tar.gz mecab-python-0.996 Mecab-python-0.996.tar.gz

2, according to the official website said installation

When installing the Mecab-ipadic dictionary, a pit was encountered. Tips:

Mecab-config isn't found in your system

The correct solution is:

Vim/etc/ld.so.conf

$ cat/etc/ld.so.confinclude/etc/ld.so.conf.d/*.conf/usr/local/lib

Then sudo ldconfig

Re-install

A lot of pits were trampled during the period, including trying to use./configure--prefix= to customize the location.

Another example/mecab-dict-index:error while loading shared libraries:libmecab.so.2:cannot open Shared object file:no such file or directory

But will cause Python to be used inside, runtimeerror

So it is more reliable to install the step by step.

The following is a reference website to prevent the pit from being trampled again:

http://d.hatena.ne.jp/hase1031/20111005/1317808636

http://d.hatena.ne.jp/atree/20090512/1242122536

http://d.hatena.ne.jp/cupnes/20110201/1296574516

Http://blog.hexu.org/archives/738.shtml

Ubuntu installs Japanese word breaker software mecab and its Python plugin

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.