macにgroongaをインストールするよ

macにgroongaをインストールするよ

MacPorts導入しているので

sudo port install groonga

で一発!...のはずが、

macbook:~ clicktx$ sudo port install groonga
Password:
Warning: port definitions are more than two weeks old, consider using selfupdate
Error: Port groonga not found
To report a bug, see <http://guide.macports.org/#project.tickets>

どうやらMacPortsが古いからupdateしろや、こら!らしいのでupdateする。

macbook:~ clicktx$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.4 downloaded.
--->  Updating the ports tree
...

2.0.3から2.0.4に無事アップデート完了。

気を取り直して再度挑戦。

macbook:~ clicktx$ sudo port install groonga
--->  Fetching archive for expat
--->  Attempting to fetch expat-2.1.0_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/expat
...
Error: Unable to execute port: Can't install mecab-utf8 because conflicting ports are installed: mecab
To report a bug, see <http://guide.macports.org/#project.tickets>

groongaをインストールする時にmecabもインストールするらしく、以前インストールしたmecabがコンフリクトしてるみたい。とりあえずmecabをアンインストール。

macbook:~ clicktx$ port uninstall mecab*

続いて再々挑戦。

macbook:~ clicktx$ sudo port install groonga
--->  Computing dependencies for groonga
--->  Dependencies to be installed: libevent mecab-utf8 mecab-base mecab-ipadic-utf8 msgpack zmq
--->  Fetching archive for libevent
--->  Attempting to fetch libevent-2.0.18_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/libevent
--->  Attempting to fetch libevent-2.0.18_0.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/libevent
--->  Installing libevent @2.0.18_0
--->  Activating libevent @2.0.18_0
--->  Cleaning libevent
--->  Fetching archive for mecab-base
--->  Attempting to fetch mecab-base-0.993_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/mecab-base
--->  Attempting to fetch mecab-base-0.993_0.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/mecab-base
--->  Installing mecab-base @0.993_0
--->  Activating mecab-base @0.993_0
--->  Cleaning mecab-base
--->  Fetching archive for mecab-ipadic-utf8
--->  Attempting to fetch mecab-ipadic-utf8-2.7.0-20070801_0.darwin_10.noarch.tbz2 from http://packages.macports.org/mecab-ipadic-utf8
--->  Fetching mecab-ipadic-utf8
--->  Verifying checksum(s) for mecab-ipadic-utf8
--->  Extracting mecab-ipadic-utf8
--->  Configuring mecab-ipadic-utf8
--->  Building mecab-ipadic-utf8
--->  Staging mecab-ipadic-utf8 into destroot
--->  Installing mecab-ipadic-utf8 @2.7.0-20070801_0
--->  Activating mecab-ipadic-utf8 @2.7.0-20070801_0
--->  Cleaning mecab-ipadic-utf8
--->  Fetching archive for mecab-utf8
--->  Attempting to fetch mecab-utf8-0.993_0+ipadic.darwin_10.noarch.tbz2 from http://packages.macports.org/mecab-utf8
--->  Fetching mecab-utf8
--->  Verifying checksum(s) for mecab-utf8
--->  Extracting mecab-utf8
--->  Configuring mecab-utf8
--->  Building mecab-utf8
--->  Staging mecab-utf8 into destroot
--->  Installing mecab-utf8 @0.993_0+ipadic
--->  Activating mecab-utf8 @0.993_0+ipadic
--->  Cleaning mecab-utf8
--->  Fetching archive for msgpack
--->  Attempting to fetch msgpack-0.5.7_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/msgpack
--->  Fetching msgpack
--->  Attempting to fetch msgpack-0.5.7.tar.gz from http://msgpack.org/releases/cpp/
--->  Verifying checksum(s) for msgpack
--->  Extracting msgpack
--->  Configuring msgpack
--->  Building msgpack
--->  Staging msgpack into destroot
--->  Installing msgpack @0.5.7_0
--->  Activating msgpack @0.5.7_0
--->  Cleaning msgpack
--->  Fetching archive for zmq
--->  Attempting to fetch zmq-2.2.0_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/zmq
--->  Attempting to fetch zmq-2.2.0_0.darwin_10.x86_64.tbz2.rmd160 from http://packages.macports.org/zmq
--->  Installing zmq @2.2.0_0
--->  Activating zmq @2.2.0_0
--->  Cleaning zmq
--->  Fetching archive for groonga
--->  Attempting to fetch groonga-2.0.2_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/groonga
--->  Fetching groonga
--->  Attempting to fetch groonga-2.0.2.tar.gz from http://packages.groonga.org/source/groonga/
--->  Verifying checksum(s) for groonga
--->  Extracting groonga
--->  Configuring groonga
--->  Building groonga
--->  Staging groonga into destroot
--->  Installing groonga @2.0.2_0
--->  Activating groonga @2.0.2_0
--->  Cleaning groonga

無事 groongaインストール完了。バージョンは2.0.2のようです。
さて、何しようかな。