DEV Community

Muhammad Muneeb Ur Rehman
Muhammad Muneeb Ur Rehman

Posted on

Apache AGE Installation

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

CentOS
yum install gcc glibc glib-common readline readline-devel zlib zlib-devel flex bison
Fedora
dnf install gcc glibc bison flex readline readline-devel zlib zlib-devel
Ubuntu
sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison

2. Installation
Apache AGE is intended to be simple to install and run. It can be installed with Docker and other traditional ways.

i. Install PosgtreSQL
You will need to install an AGE compatible version of Postgres, for now AGE supports Postgres 11 and 12. Supporting the latest versions is on AGE roadmap.

ii. Install From Package Manager
You can use a package management that your OS provides to download AGE.
sudo apt install postgresql

iii. Install AGE on Linux and MacOS
Clone the github repository (Link) or download the official release. Run the pg_config utility and check the version of PostgreSQL. Currently, only PostgreSQL versions 11 & 12 are supported. If you have any other version of Postgres, you will need to install PostgreSQL version 11 & 12.

iv. Run
pg_config

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

3. Post Installation
For every connection of AGE you start, you will need to load the AGE extension.

CREATE EXTENSION age;
LOAD 'age';
SET search_path = ag_catalog, "$user", public;

Congratulations! you have successfully installed Apache AGE.

For more details visit: https://age.apache.org/overview/

AGE Github Link: https://github.com/apache/age

AGE Viewer Github Link: https://github.com/apache/age-viewer

Top comments (0)