Sha256: be71826e699959a94322cff5deecf77f97e91fd2b4c1a07b051dc7aea8cbe099

Contents?: true

Size: 1.13 KB

Versions: 4

Compression:

Stored size: 1.13 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

Mac OS X
========

This section describes how to install Groonga on Mac OS X. You can
install Groonga by `MacPorts <http://www.macports.org/>`__ or
`Homebrew <http://mxcl.github.com/homebrew/>`__.

.. _macports:

MacPorts
--------

Install::

  % sudo port install groonga

.. _homebrew:

Homebrew
--------

Install::

  % brew install groonga

If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a
tokenizer, specify ``--with-mecab`` option::

  % brew install groonga --with-mecab

Then install and configure MeCab dictionary.

Install::

  % brew install mecab-ipadic

Configure::

  % sed -i '' -e 's,dicrc.*=.*,dicrc = /usr/local/lib/mecab/dic/ipadic,g' /usr/local/etc/mecabrc

Build from source
-----------------

Install `Xcode <https://developer.apple.com/xcode/>`_.

Download source::

  % curl -O http://packages.groonga.org/source/groonga/groonga-6.0.2.tar.gz
  % tar xvzf groonga-6.0.2.tar.gz
  % cd groonga-6.0.2

Configure (see :ref:`source-configure` about ``configure`` options)::

  % ./configure

Build::

  % make -j$(/usr/sbin/sysctl -n hw.ncpu)

Install::

  % sudo make install

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
rroonga-6.0.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt
rroonga-6.0.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt
rroonga-6.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt
rroonga-6.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt