DEV Community

Chidera Stella Onumajuru
Chidera Stella Onumajuru

Posted on • Edited on

Age Installation Guide for Windows.

Having Installed PostgreSQL, let's Install AGE. This post is a continuation of my previous post about Postgres installation from source code.

  • Enter into the directory where Postgres was installed.
cd postgres-age
git clone https://github.com/apache/age.git
Enter fullscreen mode Exit fullscreen mode
  • If you want a different branch of AGE, let's say version 1.3.0,you can view all available branches and then switch to the new branch.
git branch -r
git switch release/PG13/1.3.0

Enter fullscreen mode Exit fullscreen mode
  • From the directory where PostgreSQL was installed, find the path to your pg_config by running this command. Copy this path.
cd postgres
cd postgresql-11.18
find / -name pg_config
Enter fullscreen mode Exit fullscreen mode

The is how my path looks like.

/home/chidera/postgres-age/postgres/postgresql-11.18/bin/pg_config
Enter fullscreen mode Exit fullscreen mode
  • Now go back to the AGE directory and set the environment variable called "PG_CONFIG" to this path you copied and then install.
cd ..
cd ..
cd age
sudo make PG_CONFIG=/home/chidera/postgres-age/postgres/postgresql-11.18/bin/pg_config install
Enter fullscreen mode Exit fullscreen mode
  • Check the installation.
sudo make PG_CONFIG=/home/chidera/postgres-age/postgres/postgresql-11.18/bin/pg_config installcheck
Enter fullscreen mode Exit fullscreen mode

And so AGE has been successfully installed. Further Installation guides can be seen in the READme of the GitHub repository.

Contribute to Apache AGE

https://age.apache.org/
https://github.com/apache/age

Top comments (0)