<commit_before>.. -*- rst -*-

.. highlightlang:: none

Install
=======

We will explain of how to install Groonga for each environments.

The packages for 64-bit binary are only distributed. Please attention not to distributing others for 32-bit binaly.

Debian GNU/Linux squeeze
------------------------

.. note::

   We only distribute the package for amd64.

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/debian/ squeeze main
  deb-src http://packages.groonga.org/debian/ squeeze main

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Debian GNU/Linux wheezy
-----------------------

.. note::

   We only distribute the package for amd64.

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/debian/ wheezy main
  deb-src http://packages.groonga.org/debian/ wheezy main

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Debian GNU/Linux sid
--------------------

.. note::

   We only distribute the package for amd64.

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/debian/ unstable main
  deb-src http://packages.groonga.org/debian/ unstable main

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Ubuntu 10.04 LTS Lucid Lynx
---------------------------

.. note::

   We only distribute the package for amd64.

.. note::

   You should specify universe section of Ubuntu for
   installing by add file(ex. below-mentioned).

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/ubuntu/ lucid universe
  deb-src http://packages.groonga.org/ubuntu/ lucid universe

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Ubuntu 11.04 Natty Narwhal
--------------------------

.. note::

   We only distribute the package for amd64.

.. note::

   You should specify universe section of Ubuntu for
   installing by add file(ex. below-mentioned).

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/ubuntu/ natty universe
  deb-src http://packages.groonga.org/ubuntu/ natty universe

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

CentOS 5
--------

.. note::

   We only distribute the package for amd64.

Install::

  % sudo rpm -ivh http://packages.groonga.org/centos/groonga-repository-1.0.0-0.noarch.rpm
  % sudo yum update
  % sudo yum install -y groonga

Fedora 15
---------

.. note::

   We only distribute the package for amd64.

Install::

  % sudo rpm -ivh http://packages.groonga.org/fedora/groonga-repository-1.0.0-0.noarch.rpm
  % sudo yum update
  % sudo yum install -y groonga

Mac OS X (MacPorts)
-------------------

Install::

  % git clone https://github.com/groonga/macports.git ~/groonga-macports
  % (echo; echo file://$HOME/groonga-macports) | sudo sh -c "cat >> /opt/local/etc/macports/sources.conf"
  % sudo port install groonga

Mac OS X (Homebrew)
-------------------

Install::

  % brew install groonga

Windows
-------

.. note::

   We only distribute the package for x64.

You just download zip-file from
`packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
and extract it. We doesn't distribute installer for now. Sorry.

Others
------

If you will use indexes of tokenizing of each morpheme for
full-text search, you should install `MeCab <http://mecab.sourceforge.net/>`_
before you install groonga.

After, you should download tar.gz-file from
`packages.groonga.org/source/ <http://packages.groonga.org/source/groonga/>`_
for installing groonga. You should extract this file in
place to install, and run commands below-mentioned. ::

 ./configure --prefix=/usr --localstatedir=/var && make && sudo make install

The "prefix" option is the paramater for specified place to install.
If you won't specify the option, "/usr/local" is specified.<commit_msg>[doc][install][windows] add document about Windows installer.<commit_after>.. -*- rst -*-

.. highlightlang:: none

Install
=======

We will explain of how to install Groonga for each environments.

The packages for 64-bit binary are only distributed. Please attention not to distributing others for 32-bit binaly.

Debian GNU/Linux squeeze
------------------------

.. note::

   We only distribute the package for amd64.

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/debian/ squeeze main
  deb-src http://packages.groonga.org/debian/ squeeze main

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Debian GNU/Linux wheezy
-----------------------

.. note::

   We only distribute the package for amd64.

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/debian/ wheezy main
  deb-src http://packages.groonga.org/debian/ wheezy main

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Debian GNU/Linux sid
--------------------

.. note::

   We only distribute the package for amd64.

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/debian/ unstable main
  deb-src http://packages.groonga.org/debian/ unstable main

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Ubuntu 10.04 LTS Lucid Lynx
---------------------------

.. note::

   We only distribute the package for amd64.

.. note::

   You should specify universe section of Ubuntu for
   installing by add file(ex. below-mentioned).

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/ubuntu/ lucid universe
  deb-src http://packages.groonga.org/ubuntu/ lucid universe

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com <KEY>
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

Ubuntu 11.04 Natty Narwhal
--------------------------

.. note::

   We only distribute the package for amd64.

.. note::

   You should specify universe section of Ubuntu for
   installing by add file(ex. below-mentioned).

/etc/apt/sources.list.d/groonga.list::

  deb http://packages.groonga.org/ubuntu/ natty universe
  deb-src http://packages.groonga.org/ubuntu/ natty universe

Install::

  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31
  % sudo aptitude update
  % sudo aptitude -V -D -y install groonga

CentOS 5
--------

.. note::

   We only distribute the package for amd64.

Install::

  % sudo rpm -ivh http://packages.groonga.org/centos/groonga-repository-1.0.0-0.noarch.rpm
  % sudo yum update
  % sudo yum install -y groonga

Fedora 15
---------

.. note::

   We only distribute the package for amd64.

Install::

  % sudo rpm -ivh http://packages.groonga.org/fedora/groonga-repository-1.0.0-0.noarch.rpm
  % sudo yum update
  % sudo yum install -y groonga

Mac OS X (MacPorts)
-------------------

Install::

  % git clone https://github.com/groonga/macports.git ~/groonga-macports
  % (echo; echo file://$HOME/groonga-macports) | sudo sh -c "cat >> /opt/local/etc/macports/sources.conf"
  % sudo port install groonga

Mac OS X (Homebrew)
-------------------

Install::

  % brew install groonga

Windows (Installer)
-------------------

.. note::

   We only distribute the package for x64.

You just download installer (.exe file) from
`packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
and execute it.

Windows (zip)
-------------

.. note::

   We only distribute the package for x64.

You just download zip-file from
`packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
and extract it.

Others
------

If you will use indexes of tokenizing of each morpheme for
full-text search, you should install `MeCab <http://mecab.sourceforge.net/>`_
before you install groonga.

After, you should download tar.gz-file from
`packages.groonga.org/source/ <http://packages.groonga.org/source/groonga/>`_
for installing groonga. You should extract this file in
place to install, and run commands below-mentioned. ::

 ./configure --prefix=/usr --localstatedir=/var && make && sudo make install

The "prefix" option is the paramater for specified place to install.
If you won't specify the option, "/usr/local" is specified.
{'fraction_non_alphanumeric': 0.15597168303265585, 'fraction_numerical': 0.010504681434117378, 'mean_word_length': 2.688, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 22, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3672888', 'n_tokens_mistral': 3070, 'n_tokens_neox': 2782, 'n_words': 878}