Getting AGE


The releases and release notes can be found at

Source code

The source code can be found at


Install the following essential libraries according to each OS. Building AGE from source depends on the following Linux libraries (Ubuntu package names shown below):


yum install gcc glibc glib-common readline readline-devel zlib zlib-devel flex bison


dnf install gcc glibc bison flex readline readline-devel zlib zlib-devel


sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison


The build process will attempt to use the first path in the PATH environment variable when installing AGE. If the pg_config path is located there, run the following command in the source code directory of Apache AGE to build and install the extension.

make install

If the path to your Postgres installation is not in the PATH variable, add the path in the arguments:

make PG_CONFIG=/path/to/postgres/bin/pg_config install

Post Installation

Per Installation Instructions

After the installation, run the CREATE EXTENSION command to have AGE be installed on the server.


Per Session Instructions

LOAD 'age';

We recommend adding ag_catalog to your search_path to simplify your queries. The rest of this document will assume you have done so. If you do not, remember to add ‘ag_catalog’ to your cypher query function calls.

SET search_path = ag_catalog, "$user", public;