I didn't go smoothly, so make a note of it.
It was easy to install mecab with brew. (I couldn't install mecab-python, which will be described later, and I compiled it in the process of trial and error.)
$ brew install mecab
$ brew install mecab-ipadic
This is the production. Install mecab-python. Ordinarily easy_install https://mecab.googlecode.com/files/mecab-python-0.996.tar.gz clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future error: command '/usr/bin/gcc' failed with exit status 1 I get an error.
As a result of various investigations that did not work, setting environment variables worked.
$ wget https://mecab.googlecode.com/files/mecab-python-0.996.tar.gz
$ tar zxfv mecab-python-0.996.tar.gz
$ cd mecab-python-0.996
$
$ export CFLAGS=-Qunused-arguments
$ export CPPFLAGS=-Qunused-arguments
$ python setup.py build
$ python setup.py install
end.
Recommended Posts