Created
October 31, 2011 04:58
-
-
Save ishiduca/1326939 to your computer and use it in GitHub Desktop.
MacOSX 10.6.8 に Mecab && Text::MeCab インストールのメモ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MeCabインストールメモ | |
$HOME に MeCab をインストールする | |
※ [参照] [http://kawa.at.webry.info/201110/article_2.html:title=形態素解析 MeCab を Perl モジュール Text::MeCab から使う Kawanet Tech Blog/ウェブリブログ] | |
---- | |
1. MeCab本体: http://downloads.sourceforge.net/project/mecab/mecab/0.98/mecab-0.98.tar.gz | |
2. MeCab辞書: http://downloads.sourceforge.net/project/mecab/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz | |
3. PerlのMeCabドライバ(Text::MeCab): | |
---- | |
1. MeCab本体のインストール | |
$ curl xxx | |
$ tar zxvf mecab-0.98.tar.gz | |
$ rm mecab-0.98.tar.gz | |
$ cd mecab-0.98 | |
$ ./configure --prefix=/Users/ishiduca/mecab-0.98 --enable-utf8-only | |
$ make | |
$ make install | |
$ cd $HOME | |
2. MeCab辞書のインストール | |
$ curl xxx | |
$ tar zxvf mecab-ipadic-2.7.0-20070801.tar.tar.gz | |
$ cd mecab-ipadic-2.7.0-20070801 | |
$ ./configure --prefix=/Users/ishiduca/mecab-0.98 --with-charset=utf8 --with-mecab-config=/Users/ishiduca/mecab-0.98/bin/mecab-config | |
$ make | |
$ make install | |
$ cd $HOME | |
3. Text::MeCabのインストール | |
$ cpanm -v Text::MeCab # -v (--verbose) は必須 | |
(中略) | |
Path to mecab config? | |
=> /Users/ishiduca/mecab-0.98/bin/mecab-config | |
(中略) | |
Encoding of your mecab dictionary? (shift_jis, euc-jp, utf-8) [euc-jp] | |
=> utf-8 | |
(後略) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment