Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > e450e7f3d6075c4a54de19e68d38177f > files > 569

groonga-doc-3.0.5-1.fc18.x86_64.rpm


<!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.4. Ubuntu &mdash; 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.5. CentOS" href="centos.html" />
    <link rel="prev" title="2.3. Debian GNU/Linux" href="debian.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/ubuntu.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="centos.html" title="2.5. CentOS"
             accesskey="N">次へ</a> |</li>
        <li class="right" >
          <a href="debian.html" title="2.3. Debian GNU/Linux"
             accesskey="P">前へ</a> |</li>
        <li><a href="../index.html">groonga v3.0.5ドキュメント</a> &raquo;</li>
          <li><a href="../install.html" accesskey="U">2. インストール</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="ubuntu">
<h1>2.4. Ubuntu<a class="headerlink" href="#ubuntu" title="このヘッドラインへのパーマリンク">¶</a></h1>
<p>このセクションではUbuntu上で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="lts-lucid-lynx">
<h2>2.4.1. 10.04 LTS Lucid Lynx<a class="headerlink" href="#lts-lucid-lynx" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="admonition note">
<p class="first admonition-title">ノート</p>
<p>groongaをインストールするためにuniverseリポジトリを有効にしてください:</p>
<div class="last highlight-none"><div class="highlight"><pre>% sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/universe.list
% sudo sed -i&#39;&#39; -e &#39;s/main/universe/&#39; /etc/apt/sources.list.d/universe.list
</pre></div>
</div>
</div>
<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/ubuntu/ lucid universe
deb-src http://packages.groonga.org/ubuntu/ lucid universe
</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 apt-get -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 apt-get -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 apt-get -y install groonga-normalizer-mysql
</pre></div>
</div>
</div>
<div class="section" id="lts-precise-pangolin">
<h2>2.4.2. 12.04 LTS Precise Pangolin<a class="headerlink" href="#lts-precise-pangolin" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="admonition note">
<p class="first admonition-title">ノート</p>
<p>groongaをインストールするためにuniverseリポジトリを有効にしてください:</p>
<div class="last highlight-none"><div class="highlight"><pre>% sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/universe.list
% sudo sed -i&#39;&#39; -e &#39;s/main/universe/&#39; /etc/apt/sources.list.d/universe.list
</pre></div>
</div>
</div>
<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/ubuntu/ precise universe
deb-src http://packages.groonga.org/ubuntu/ precise universe
</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 apt-get -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 apt-get -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 apt-get -y install groonga-normalizer-mysql
</pre></div>
</div>
</div>
<div class="section" id="quantal-quetzal">
<h2>2.4.3. 12.10 Quantal Quetzal<a class="headerlink" href="#quantal-quetzal" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="admonition note">
<p class="first admonition-title">ノート</p>
<p>groongaをインストールするためにuniverseリポジトリを有効にしてください:</p>
<div class="last highlight-none"><div class="highlight"><pre>% sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/universe.list
% sudo sed -i&#39;&#39; -e &#39;s/main/universe/&#39; /etc/apt/sources.list.d/universe.list
</pre></div>
</div>
</div>
<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/ubuntu/ quantal universe
deb-src http://packages.groonga.org/ubuntu/ quantal universe
</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 apt-get -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 apt-get -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 apt-get -y install groonga-normalizer-mysql
</pre></div>
</div>
</div>
<div class="section" id="raring-ringtail">
<h2>2.4.4. 13.04 Raring Ringtail<a class="headerlink" href="#raring-ringtail" title="このヘッドラインへのパーマリンク">¶</a></h2>
<div class="admonition note">
<p class="first admonition-title">ノート</p>
<p>groongaをインストールするためにuniverseリポジトリを有効にしてください:</p>
<div class="last highlight-none"><div class="highlight"><pre>% sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/universe.list
% sudo sed -i&#39;&#39; -e &#39;s/main/universe/&#39; /etc/apt/sources.list.d/universe.list
</pre></div>
</div>
</div>
<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/ubuntu/ raring universe
deb-src http://packages.groonga.org/ubuntu/ raring universe
</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 apt-get -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 apt-get -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 apt-get -y install groonga-normalizer-mysql
</pre></div>
</div>
</div>
<div class="section" id="build-from-source">
<h2>2.4.5. ソースからビルド<a class="headerlink" href="#build-from-source" title="このヘッドラインへのパーマリンク">¶</a></h2>
<p>groongaをビルドするために必要なパッケージをインストールします:</p>
<div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -V -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 &#39;^processor&#39; /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.4. Ubuntu</a><ul>
<li><a class="reference internal" href="#lts-lucid-lynx">2.4.1. 10.04 LTS Lucid Lynx</a></li>
<li><a class="reference internal" href="#lts-precise-pangolin">2.4.2. 12.04 LTS Precise Pangolin</a></li>
<li><a class="reference internal" href="#quantal-quetzal">2.4.3. 12.10 Quantal Quetzal</a></li>
<li><a class="reference internal" href="#raring-ringtail">2.4.4. 13.04 Raring Ringtail</a></li>
<li><a class="reference internal" href="#build-from-source">2.4.5. ソースからビルド</a></li>
</ul>
</li>
</ul>

  <h4>前のトピックへ</h4>
  <p class="topless"><a href="debian.html"
                        title="前の章へ">2.3. Debian GNU/Linux</a></p>
  <h4>次のトピックへ</h4>
  <p class="topless"><a href="centos.html"
                        title="次の章へ">2.5. CentOS</a></p>
  <h3>このページ</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/install/ubuntu.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="centos.html" title="2.5. CentOS"
             >次へ</a> |</li>
        <li class="right" >
          <a href="debian.html" title="2.3. Debian GNU/Linux"
             >前へ</a> |</li>
        <li><a href="../index.html">groonga v3.0.5ドキュメント</a> &raquo;</li>
          <li><a href="../install.html" >2. インストール</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2009-2013, Brazil, Inc.
    </div>
  </body>
</html>