<!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 — groonga v3.0.5 documentation</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> <link rel="shortcut icon" href="../_static/favicon.ico"/> <link rel="top" title="groonga v3.0.5 documentation" href="../index.html" /> <link rel="up" title="2. Install" 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">An open-source fulltext search engine and column store.</span> </a> </h1> <div class="other-language-links"> <ul> <li><a href="../../../ja/html/install/ubuntu.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li> </ul> </div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="centos.html" title="2.5. CentOS" accesskey="N">next</a> |</li> <li class="right" > <a href="debian.html" title="2.3. Debian GNU/Linux" accesskey="P">previous</a> |</li> <li><a href="../index.html">groonga v3.0.5 documentation</a> »</li> <li><a href="../install.html" accesskey="U">2. Install</a> »</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="Permalink to this headline">¶</a></h1> <p>This section describes how to install groonga related deb packages on Ubuntu. You can install them by <tt class="docutils literal"><span class="pre">apt</span></tt>.</p> <p>We distribute both 32-bit and 64-bit packages but we strongly recommend a 64-bit package for server. You should use a 32-bit package just only for tests or development. You will encounter an out of memory error with a 32-bit package even if you just process medium size data.</p> <div class="admonition note"> <p class="first admonition-title">Note</p> <p>The package 'groonga' is the mininum set of fulltext search engine. If you want to use groonga for server use, you can install additional preconfigured packages.</p> <p>There are three packages for server use.</p> <ul class="simple"> <li>groonga-server-http (simple HTTP protocol based server package)</li> <li>groonga-httpd (nginx and HTTP protocol based server package)</li> <li>groonga-server-gqtp (GQTP protocol based server package)</li> </ul> <p class="last">See <a class="reference internal" href="../server.html"><em>Server</em></a> section about details.</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="Permalink to this headline">¶</a></h2> <div class="admonition note"> <p class="first admonition-title">Note</p> <p>Enable the universe repository to install groonga:</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'' -e 's/main/universe/' /etc/apt/sources.list.d/universe.list </pre></div> </div> </div> <p>Add the groonga apt repository.</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>Install:</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>If you want to use <a class="reference external" href="http://mecab.sourceforge.net/">MeCab</a> as a tokenizer, install groonga-tokenizer-mecab package.</p> <p>Install groonga-tokenizer-mecab package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-tokenizer-mecab </pre></div> </div> <p>There is a package that provides <a class="reference external" href="http://munin-monitoring.org/">Munin</a> plugins. If you want to monitor groonga status by Munin, install groonga-munin-plugins package.</p> <p>Install groonga-munin-plugins package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-munin-plugins </pre></div> </div> <p>There is a package that provides MySQL compatible normalizer as groonga plugins. If you want to use that one, install groonga-normalizer-mysql package.</p> <p>Install groonga-normalizer-mysql package:</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="Permalink to this headline">¶</a></h2> <div class="admonition note"> <p class="first admonition-title">Note</p> <p>Enable the universe repository to install groonga:</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'' -e 's/main/universe/' /etc/apt/sources.list.d/universe.list </pre></div> </div> </div> <p>Add the groonga apt repository.</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>Install:</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>If you want to use <a class="reference external" href="http://mecab.sourceforge.net/">MeCab</a> as a tokenizer, install groonga-tokenizer-mecab package.</p> <p>Install groonga-tokenizer-mecab package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-tokenizer-mecab </pre></div> </div> <p>There is a package that provides <a class="reference external" href="http://munin-monitoring.org/">Munin</a> plugins. If you want to monitor groonga status by Munin, install groonga-munin-plugins package.</p> <p>Install groonga-munin-plugins package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-munin-plugins </pre></div> </div> <p>There is a package that provides MySQL compatible normalizer as groonga plugins. If you want to use that one, install groonga-normalizer-mysql package.</p> <p>Install groonga-normalizer-mysql package:</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="Permalink to this headline">¶</a></h2> <div class="admonition note"> <p class="first admonition-title">Note</p> <p>Enable the universe repository to install groonga:</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'' -e 's/main/universe/' /etc/apt/sources.list.d/universe.list </pre></div> </div> </div> <p>Add the groonga apt repository.</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>Install:</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>If you want to use <a class="reference external" href="http://mecab.sourceforge.net/">MeCab</a> as a tokenizer, install groonga-tokenizer-mecab package.</p> <p>Install groonga-tokenizer-mecab package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-tokenizer-mecab </pre></div> </div> <p>There is a package that provides <a class="reference external" href="http://munin-monitoring.org/">Munin</a> plugins. If you want to monitor groonga status by Munin, install groonga-munin-plugins package.</p> <p>Install groonga-munin-plugins package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-munin-plugins </pre></div> </div> <p>There is a package that provides MySQL compatible normalizer as groonga plugins. If you want to use that one, install groonga-normalizer-mysql package.</p> <p>Install groonga-normalizer-mysql package:</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="Permalink to this headline">¶</a></h2> <div class="admonition note"> <p class="first admonition-title">Note</p> <p>Enable the universe repository to install groonga:</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'' -e 's/main/universe/' /etc/apt/sources.list.d/universe.list </pre></div> </div> </div> <p>Add the groonga apt repository.</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>Install:</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>If you want to use <a class="reference external" href="http://mecab.sourceforge.net/">MeCab</a> as a tokenizer, install groonga-tokenizer-mecab package.</p> <p>Install groonga-tokenizer-mecab package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-tokenizer-mecab </pre></div> </div> <p>There is a package that provides <a class="reference external" href="http://munin-monitoring.org/">Munin</a> plugins. If you want to monitor groonga status by Munin, install groonga-munin-plugins package.</p> <p>Install groonga-munin-plugins package:</p> <div class="highlight-none"><div class="highlight"><pre>% sudo apt-get -y install groonga-munin-plugins </pre></div> </div> <p>There is a package that provides MySQL compatible normalizer as groonga plugins. If you want to use that one, install groonga-normalizer-mysql package.</p> <p>Install groonga-normalizer-mysql package:</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. Build from source<a class="headerlink" href="#build-from-source" title="Permalink to this headline">¶</a></h2> <p>Install required packages to build 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>Download source:</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 (see <a class="reference internal" href="others.html#source-configure"><em>configure</em></a> about <tt class="docutils literal"><span class="pre">configure</span></tt> options):</p> <div class="highlight-none"><div class="highlight"><pre>% ./configure </pre></div> </div> <p>Build:</p> <div class="highlight-none"><div class="highlight"><pre>% make -j$(grep '^processor' /proc/cpuinfo | wc -l) </pre></div> </div> <p>Install:</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">Table Of Contents</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. Build from source</a></li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="debian.html" title="previous chapter">2.3. Debian GNU/Linux</a></p> <h4>Next topic</h4> <p class="topless"><a href="centos.html" title="next chapter">2.5. CentOS</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="../_sources/install/ubuntu.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="centos.html" title="2.5. CentOS" >next</a> |</li> <li class="right" > <a href="debian.html" title="2.3. Debian GNU/Linux" >previous</a> |</li> <li><a href="../index.html">groonga v3.0.5 documentation</a> »</li> <li><a href="../install.html" >2. Install</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2013, Brazil, Inc. </div> </body> </html>