コマンド
$ http://groonga.org/files/groonga/groonga-1.0.6.tar.gz $ tar xf groonga-1.0.6.tar.gz $ cd groonga-1.0.6 $ ./configure $ make $ sudo make install $ sudo ldconfig
勘所
makeの実行中に,画面がまったく動かなくなるように見えるときがあります.でも,何もせずに待てば,進みます.4コアのCPUを載せたサーバで,makeの時間は900秒でした.
ldconfigコマンドが,あるとき〜♪
$ groonga --help Usage: groonga [options...] [dest] options: -n: create new database -c: run in client mode -s: run in server mode -d: run in daemon mode -e, --encoding <encoding>: encoding for new database [none|euc|utf8|sjis|latin1|koi8r] -l, --log-level <log level>: log level -a, --address <ip/hostname>: server address to listen (default: 0.0.0.0) -p, --port <port number>: server port number (default: 10041) -i, --server-id <ip/hostname>: server ID address (default: tazono) -t, --max-threads <max threads>: max number of free threads (default: 4) -h, --help: show usage --document-root <path>: document root path --protocol <protocol>: server protocol to listen (default: gqtp) --version: show groonga version --log-path <path>: specify log path --query-log-path <path>: specify query log path --pid-path <path>: specify pid file path (daemon mode only) --config-path <path>: specify config file path --cache-limit <limit>: specify the max number of cache data --file <path>: read commands from specified file --default-command-version <version>: specify default command version --default-match-escalation-threshold <threshold>: specify default match escalation threshold dest: <db pathname> [<command>] or <dest hostname> <db pathname> [<command>]: when standalone/server mode <dest hostname>: when client mode (default: "localhost")
ないとき…
$ groonga --help groonga: error while loading shared libraries: libgroonga.so.0: cannot open shared object file: No such file or directory