Build as a casual developer

This document describes how to build PGroonga as a casual developer. For example, a developer who just wants to fix a typo.

If you want to be a PGroonga developer, build is better than this.

Prepare your fork repository

You need to fork https://github.com/pgroonga/pgroonga/ for development. You will open a pull request from your fork repository later. See also GitHub documents:

Here are command lines to clone your fork repository:

git clone --recursive git@github.com:${YOUR_GITHUB_ACCOUNT}/pgroonga.git
cd pgroonga

Setting up build environment

You can use our setup script that installs required dependencies including Groonga and PostgreSQL.

Here is the command line to run our setup script:

./setup.sh

How to build and test PGroonga

You can use the following command line to build PGroonga and run PGroonga tests:

NEED_SUDO=yes HAVE_XXHASH=1 test/run-sql-test.sh

PGroonga has two test types:

Normally, you only use the former. test/run-sql-test.sh is the test runner for the former. It builds and installs PGroonga and runs SQL based regression tests.

See also test.

You can use the following command lines to only build and install PGroonga:

make
sudo make install