2

Im follow the tutorial from https://age.apache.org/age-manual/master/intro/setup.html to install the apache-age. The first path on my $PATH variable is not the one from the pg_config so i used the make PG_CONFIG=/path/to/postgres/bin/pg_config install command and putting the pg_config path myself. But im getting this error : (https://i.stack.imgur.com/ov0G3.png)

I tried using sudo privilages but it didnt help, this seems to be a C syntax error or something like that

4 Answers4

3

See with the command pg_config (or /path/to/postgres/bin/pg_config, if it's not on your $PATH) what is the version of PostgreSQL you're using.

If you're on version 12, and if you're cloning Apache AGE from Github, you must

git checkout AGE_PG12.1.0_ALPHA

before installing Apache AGE, as, like the branch name says, the support for version 12 is still in alpha state.

Marco Souza
  • 296
  • 7
2

You are getting this error because most probably you are cloning the master branch, and I think by mistake development code was pushed to master branch. You should use the release version's source code to install.

Sarthak
  • 380
  • 7
0

I got the same error.

This is because of compatibility issues between PostgreSQL and Apache AGE.

You must be using a previous version of Apache AGE. Try cloning the ALPHA branch of AGE (I used PostgreSQL version 12.13).

This resolved the issue for me.

-1

You can follow the procedure in apache-age installation in ubuntu to smoothly install and run apache-age on ubuntu.

Here are some of the steps:

To configure age with postgresql use the following commands

sudo make PG_CONFIG = .../age_installation/pg/postgresql-11.18/bin/pg_config install

then the following command

make PG_CONFIG = .../age_installation/pg/postgresql-11.18/bin/pg_config installcheck

In the above commands, PG_CONFIG requires the path to the pg_config file and the second command will check whether the installation was successful or not.

At the end of the check command, you will receive a message saying all tests passed.

NOTE: .../age_installation represents absolute path towards the folder where age_installation is taking place

NOTE: APACHE AGE works best with postgresql 11

General Grievance
  • 4,555
  • 31
  • 31
  • 45
umerFreak
  • 9
  • 2