<!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.3. Debian GNU/Linux — 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.4. Ubuntu" href="ubuntu.html" /> <link rel="prev" title="2.2. Mac OS X" href="mac_os_x.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/debian.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="ubuntu.html" title="2.4. Ubuntu" accesskey="N">次へ</a> |</li> <li class="right" > <a href="mac_os_x.html" title="2.2. Mac OS X" 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="debian-gnu-linux"> <h1>2.3. Debian GNU/Linux<a class="headerlink" href="#debian-gnu-linux" title="このヘッドラインへのパーマリンク">¶</a></h1> <p>このセクションではDebian GNU/Linux上でgroonga関連のdebパッケージをインストールする方法を説明します。これらのパッケージは <tt class="docutils literal"><span class="pre">apt</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="squeeze"> <h2>2.3.1. squeeze<a class="headerlink" href="#squeeze" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groongaのaptリポジトリを追加します。</p> <p>/etc/apt/sources.list.d/groonga.list:</p> <div class="highlight-none"><div class="highlight"><pre>deb http://packages.groonga.org/debian/ squeeze main deb-src http://packages.groonga.org/debian/ squeeze main </pre></div> </div> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude update % sudo aptitude -V -D -y --allow-untrusted install groonga-keyring % sudo aptitude update % sudo aptitude -V -D -y install 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 aptitude -V -D -y install groonga-tokenizer-mecab </pre></div> </div> <p><a class="reference external" href="http://munin-monitoring.org/">Munin</a> プラグインを提供するパッケージもあります。Muninでgroongaの状態をモニターしたい場合は、groonga-munin-pluginsパッケージをインストールしてください。</p> <p>groonga-munin-pluginsパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude -V -D -y install 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 aptitude -V -D -y install groonga-normalizer-mysql </pre></div> </div> </div> <div class="section" id="wheezy"> <h2>2.3.2. wheezy<a class="headerlink" href="#wheezy" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groongaのaptリポジトリを追加します。</p> <p>/etc/apt/sources.list.d/groonga.list:</p> <div class="highlight-none"><div class="highlight"><pre>deb http://packages.groonga.org/debian/ wheezy main deb-src http://packages.groonga.org/debian/ wheezy main </pre></div> </div> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get update % sudo apt-get -y --allow-unauthenticated install groonga-keyring % sudo apt-get update % sudo apt-get -y install 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 aptitude -V -D -y install groonga-tokenizer-mecab </pre></div> </div> <p><a class="reference external" href="http://munin-monitoring.org/">Munin</a> プラグインを提供するパッケージもあります。Muninでgroongaの状態をモニターしたい場合は、groonga-munin-pluginsパッケージをインストールしてください。</p> <p>groonga-munin-pluginsパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude -V -D -y install 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 aptitude -V -D -y install groonga-normalizer-mysql </pre></div> </div> </div> <div class="section" id="jessie"> <h2>2.3.3. jessie<a class="headerlink" href="#jessie" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groongaのaptリポジトリを追加します。</p> <p>/etc/apt/sources.list.d/groonga.list:</p> <div class="highlight-none"><div class="highlight"><pre>deb http://packages.groonga.org/debian/ jessie main deb-src http://packages.groonga.org/debian/ jessie main </pre></div> </div> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get update % sudo apt-get -y --allow-unauthenticated install groonga-keyring % sudo apt-get update % sudo apt-get -y install 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 aptitude -V -D -y install groonga-tokenizer-mecab </pre></div> </div> <p><a class="reference external" href="http://munin-monitoring.org/">Munin</a> プラグインを提供するパッケージもあります。Muninでgroongaの状態をモニターしたい場合は、groonga-munin-pluginsパッケージをインストールしてください。</p> <p>groonga-munin-pluginsパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude -V -D -y install 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 aptitude -V -D -y install groonga-normalizer-mysql </pre></div> </div> </div> <div class="section" id="sid"> <h2>2.3.4. sid<a class="headerlink" href="#sid" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groongaのaptリポジトリを追加します。</p> <p>/etc/apt/sources.list.d/groonga.list:</p> <div class="highlight-none"><div class="highlight"><pre>deb http://packages.groonga.org/debian/ unstable main deb-src http://packages.groonga.org/debian/ unstable main </pre></div> </div> <p>インストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude update % sudo aptitude -V -D -y --allow-untrusted install groonga-keyring % sudo aptitude update % sudo aptitude -V -D -y install 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 aptitude -V -D -y install groonga-tokenizer-mecab </pre></div> </div> <p><a class="reference external" href="http://munin-monitoring.org/">Munin</a> プラグインを提供するパッケージもあります。Muninでgroongaの状態をモニターしたい場合は、groonga-munin-pluginsパッケージをインストールしてください。</p> <p>groonga-munin-pluginsパッケージのインストール:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude -V -D -y install 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 aptitude -V -D -y install groonga-normalizer-mysql </pre></div> </div> </div> <div class="section" id="build-from-source"> <h2>2.3.5. ソースからビルド<a class="headerlink" href="#build-from-source" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groongaをビルドするために必要なパッケージをインストールします:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo aptitude -V -D -y install wget tar build-essential zlib1g-dev liblzo2-dev libmsgpack-dev libzmq-dev libevent-dev libmecab-dev </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.3. Debian GNU/Linux</a><ul> <li><a class="reference internal" href="#squeeze">2.3.1. squeeze</a></li> <li><a class="reference internal" href="#wheezy">2.3.2. wheezy</a></li> <li><a class="reference internal" href="#jessie">2.3.3. jessie</a></li> <li><a class="reference internal" href="#sid">2.3.4. sid</a></li> <li><a class="reference internal" href="#build-from-source">2.3.5. ソースからビルド</a></li> </ul> </li> </ul> <h4>前のトピックへ</h4> <p class="topless"><a href="mac_os_x.html" title="前の章へ">2.2. Mac OS X</a></p> <h4>次のトピックへ</h4> <p class="topless"><a href="ubuntu.html" title="次の章へ">2.4. Ubuntu</a></p> <h3>このページ</h3> <ul class="this-page-menu"> <li><a href="../_sources/install/debian.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="ubuntu.html" title="2.4. Ubuntu" >次へ</a> |</li> <li class="right" > <a href="mac_os_x.html" title="2.2. Mac OS X" >前へ</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>