2.2. macOS — Groonga v14.0.4 documentation

Skip to main content
`Ctrl`+`K`

# 2.2. macOS

This section describes how to install Groonga on macOS. You can install Groonga by MacPorts or Homebrew.

## 2.2.1. MacPorts

Install:

    % sudo port install groonga

## 2.2.2. Homebrew

Install:

    % brew install groonga

If you want to use MeCab 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

## 2.2.3. Build from source

Install Xcode.

Download source:

    % curl -O https://packages.groonga.org/source/groonga/groonga-14.0.4.tar.gz
    % tar xvzf groonga-14.0.4.tar.gz
    % cd groonga-14.0.4

Configure (see configure about `configure` options):

    % ./configure

Build:

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

Install:

    % sudo make install