<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>2.5. CentOS — groonga v3.0.5ドキュメント</title> <link rel="stylesheet" href="../_static/groonga.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '3.0.5', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/translations.js"></script> <link rel="shortcut icon" href="../_static/favicon.ico"/> <link rel="top" title="groonga v3.0.5ドキュメント" href="../index.html" /> <link rel="up" title="2. インストール" href="../install.html" /> <link rel="next" title="2.6. Fedora" href="fedora.html" /> <link rel="prev" title="2.4. Ubuntu" href="ubuntu.html" /> </head> <body> <div class="header"> <h1 class="title"> <a id="top-link" href="../index.html"> <span class="project">groonga</span> <span class="separator">-</span> <span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span> </a> </h1> <div class="other-language-links"> <ul> <li><a href="../../../en/html/install/centos.html"><img src="../_static/us.png" alt="English">English page</a></li> </ul> </div> </div> <div class="related"> <h3>ナビゲーション</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="総合索引" accesskey="I">索引</a></li> <li class="right" > <a href="fedora.html" title="2.6. Fedora" accesskey="N">次へ</a> |</li> <li class="right" > <a href="ubuntu.html" title="2.4. Ubuntu" accesskey="P">前へ</a> |</li> <li><a href="../index.html">groonga v3.0.5ドキュメント</a> »</li> <li><a href="../install.html" accesskey="U">2. インストール</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="centos"> <h1>2.5. CentOS<a class="headerlink" href="#centos" title="このヘッドラインへのパーマリンク">¶</a></h1> <p>このセクションではCentOS上でgroonga関連のPRMパッケージをインストールする方法を説明します。これらのパッケージは <tt class="docutils literal"><span class="pre">yum</span></tt> でインストールできます。</p> <p>32-bit用と64-bit用のパッケージを配布していますが、サーバ用途には64-bitパッケージを利用することをオススメします。32-bit用パッケージはテスト用か開発用にだけ使って下さい。32-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。</p> <div class="admonition note"> <p class="first admonition-title">ノート</p> <p>'groonga'パッケージは全文検索のための最小構成パッケージです。groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。</p> <p>サーバー用途のための3つのパッケージがあります。</p> <ul class="simple"> <li><p class="first">groonga-server-http (簡易HTTPサーバー)</p> </li> <li><p class="first">groonga-httpd (nginxを元にしたHTTPサーバー)</p> </li> <li><p class="first">groonga-server-gqtp (GQTPサーバー)</p> </li> </ul> <p class="last">詳細は <a class="reference internal" href="../server.html"><em>サーバー</em></a> を参照してください。</p> </div> <div class="section" id="centos-5"> <h2>2.5.1. CentOS 5<a class="headerlink" href="#centos-5" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm % sudo yum makecache % sudo yum install -y groonga </pre></div> </div> <p><a class="reference external" href="http://mecab.sourceforge.net/">MeCab</a> をトークナイザーとして使いたいときは、groonga-tokenizer-mecabパッケージをインストールしてください。</p> <p>groonga-tokenizer-mecabパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y groonga-tokenizer-mecab </pre></div> </div> <p>それからMeCabの辞書をインストールします。(mecab-ipadicもしくはmecab-jumandic)</p> <p>IPA辞書をインストールします:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y mecab-ipadic </pre></div> </div> <p>あるいはJuman辞書をインストールします:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y mecab-jumandic </pre></div> </div> <p><a class="reference external" href="http://munin-monitoring.org/">Munin</a> プラグインを提供するパッケージもあります。Muninでgroongaの状態をモニターしたい場合は、groonga-munin-pluginsパッケージをインストールしてください。</p> <div class="admonition note"> <p class="first admonition-title">ノート</p> <p>groonga-munin-pluginsパッケージはmunin-nodeパッケージを必要としますが、munin-nodeパッケージはCentOSの公式リポジトリには含まれていません。munin-nodeパッケージを <tt class="docutils literal"><span class="pre">yum</span></tt> でインストールするために <a class="reference external" href="http://repoforge.org/">Repoforge (RPMforge)</a> リポジトリか <a class="reference external" href="http://fedoraproject.org/wiki/EPEL">EPEL</a> リポジトリを有効にする必要があります。</p> <p>i386環境でRepoforge (RPMforge)リポジトリを有効にする:</p> <div class="highlight-none"><div class="highlight"><pre>% wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm % sudo rpm -ivh rpmforge-release-0.5.2-2.el5.rf.i386.rpm </pre></div> </div> <p>x86_64環境でRepoforge (RPMforge)リポジトリを有効にする:</p> <div class="highlight-none"><div class="highlight"><pre>% wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm % sudo rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm </pre></div> </div> <p>EPELリポジトリを有効にする(環境非依存):</p> <div class="last highlight-none"><div class="highlight"><pre>% wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm % sudo rpm -ivh epel-release-5-4.noarch.rpm </pre></div> </div> </div> <p>groonga-munin-pluginsパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y groonga-munin-plugins </pre></div> </div> <p>MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには <tt class="docutils literal"><span class="pre">groonga-normalizer-mysql</span></tt> パッケージをインストールしてください。</p> <p>groonga-normalizer-mysqlパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y install groonga-normalizer-mysql </pre></div> </div> </div> <div class="section" id="centos-6"> <h2>2.5.2. CentOS 6<a class="headerlink" href="#centos-6" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm % sudo yum makecache % sudo yum install -y groonga </pre></div> </div> <p><a class="reference external" href="http://mecab.sourceforge.net/">MeCab</a> をトークナイザーとして使いたいときは、groonga-tokenizer-mecabパッケージをインストールしてください。</p> <p>groonga-tokenizer-mecabパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y groonga-tokenizer-mecab </pre></div> </div> <p>それからMeCabの辞書をインストールします。(mecab-ipadicもしくはmecab-jumandic)</p> <p>IPA辞書をインストールします:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y mecab-ipadic </pre></div> </div> <p>あるいはJuman辞書をインストールします:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y mecab-jumandic </pre></div> </div> <p><a class="reference external" href="http://munin-monitoring.org/">Munin</a> プラグインを提供するパッケージもあります。Muninでgroongaの状態をモニターしたい場合は、groonga-munin-pluginsパッケージをインストールしてください。</p> <div class="admonition note"> <p class="first admonition-title">ノート</p> <p>groonga-munin-pluginsパッケージはmunin-nodeパッケージを必要としますが、munin-nodeパッケージはCentOSの公式リポジトリには含まれていません。munin-nodeパッケージを <tt class="docutils literal"><span class="pre">yum</span></tt> でインストールするために <a class="reference external" href="http://fedoraproject.org/wiki/EPEL">EPEL</a> リポジトリを有効にする必要があります。</p> <p>EPELリポジトリを有効にする(環境非依存):</p> <div class="last highlight-none"><div class="highlight"><pre>% sudo rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm </pre></div> </div> </div> <p>groonga-munin-pluginsパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y groonga-munin-plugins </pre></div> </div> <p>MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには <tt class="docutils literal"><span class="pre">groonga-normalizer-mysql</span></tt> パッケージをインストールしてください。</p> <p>groonga-normalizer-mysqlパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y install groonga-normalizer-mysql </pre></div> </div> </div> <div class="section" id="build-from-source"> <h2>2.5.3. ソースからビルド<a class="headerlink" href="#build-from-source" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groongaをビルドするために必要なパッケージをインストールします:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo yum install -y wget tar gcc-c++ make mecab-devel </pre></div> </div> <p>ソースをダウンロードします:</p> <div class="highlight-none"><div class="highlight"><pre>% wget http://packages.groonga.org/source/groonga/groonga-3.0.5.tar.gz % tar xvzf groonga-3.0.5.tar.gz % cd groonga-3.0.5 </pre></div> </div> <p>configureを実行します( <tt class="docutils literal"><span class="pre">configure</span></tt> のオプションについては <a class="reference internal" href="others.html#source-configure"><em>configure</em></a> を参照してください):</p> <div class="highlight-none"><div class="highlight"><pre>% ./configure </pre></div> </div> <p>ビルド:</p> <div class="highlight-none"><div class="highlight"><pre>% make -j$(grep '^processor' /proc/cpuinfo | wc -l) </pre></div> </div> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo make install </pre></div> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../index.html">目次</a></h3> <ul> <li><a class="reference internal" href="#">2.5. CentOS</a><ul> <li><a class="reference internal" href="#centos-5">2.5.1. CentOS 5</a></li> <li><a class="reference internal" href="#centos-6">2.5.2. CentOS 6</a></li> <li><a class="reference internal" href="#build-from-source">2.5.3. ソースからビルド</a></li> </ul> </li> </ul> <h4>前のトピックへ</h4> <p class="topless"><a href="ubuntu.html" title="前の章へ">2.4. Ubuntu</a></p> <h4>次のトピックへ</h4> <p class="topless"><a href="fedora.html" title="次の章へ">2.6. Fedora</a></p> <h3>このページ</h3> <ul class="this-page-menu"> <li><a href="../_sources/install/centos.txt" rel="nofollow">ソースコードを表示</a></li> </ul> <div id="searchbox" style="display: none"> <h3>クイック検索</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="検索" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> モジュール、クラス、または関数名を入力してください </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>ナビゲーション</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="総合索引" >索引</a></li> <li class="right" > <a href="fedora.html" title="2.6. Fedora" >次へ</a> |</li> <li class="right" > <a href="ubuntu.html" title="2.4. Ubuntu" >前へ</a> |</li> <li><a href="../index.html">groonga v3.0.5ドキュメント</a> »</li> <li><a href="../install.html" >2. インストール</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2013, Brazil, Inc. </div> </body> </html>