1

I am installing AGE by following this link: https://theundersurfers.netlify.app/age-installation/

All the rest steps are done successfully but I a facing an error while installing AGE from the repo; git clone https://github.com/apache/age.git..

Till clone it is working fine but as i am giving the path to get "pg_config" it is giving error.. What to do????

I am looking for answer..

saima ali
  • 133
  • 9

7 Answers7

1

As I can see in the guide, the next steps are

cd age/

# install
sudo make PG_CONFIG=/home/imran/age_installation/pg/postgresql-11.18/bin/pg_config install

The first command cd age/ is to enter the age directory where you have cloned the git repo.

In the second command substitute /home/imran/age_installation/pg/postgresql-11.18/bin/pg_config with the path to your postgresql installation and pg_config wherever it is.

For me it is

/usr/local/pgsql/bin/pg_config
0

You should provide the PG_CONFIG argument while installation of Apache AGE which is supposed to be the path of the installed PostgreSQL's pg_config binary file. It is like the following:

  • Assume installed PostgreSQL's binary directory is located at $PG_PATH
# inside Apache AGE project
make install PG_COFNIG=$(PG_PATH)/pg_config

In case of having the binary directory of postgresql added to the PATH environment variable you can use it directly and you can watch where it is located using

which pg_config
0

You might have forgotten to set the paths to the installed postgres directory. This can be done using the following:

export PATH={path to pgsql directory}/bin/:$PATH
export PGDATA={path to pgsql directory}/bin/data

An example might look like export PATH=/usr/local/pgsql/bin/:$PATH. This should make you able to make the files using:

sudo make PG_CONFIG={path to pgsql directory}/bin/pg_config install

If the problem still persists, check manually in the bin directory if the pg_config file exists. If it is missing you might need to reinstall postgres.

Ken W.
  • 397
  • 1
  • 13
0

make sure that you are into the Postgresql path, after this check if the pg_config file is in the /bin/ directory, so you can configure it running make install without errors:

sudo make PG_CONFIG=~/[postgresql path]/bin/pg_config install
Marcos Silva
  • 115
  • 5
0

When installing AGE, if using the absolute path sudo make PG_CONFIG=/home/<User>/age_installation/pg/postgresql-11.18/bin/pg_config install doesn't work for you, you might want to try using a relative path such as sudo make PG_CONFIG=../postgresql-11.18/bin/pg_config install.

Thereafter, you can run make PG_CONFIG=../postgresql-11.18/bin/pg_config installcheck without the sudo to ensure that AGE is properly installed without errors.

0

Make PG_CONFIG an environment variable and install.

export PG_CONFIG=/usr/local/pgsql-12/bin/pg_config

Then,

make install
Tito
  • 289
  • 8
0

Assuming you had successfully installed PostgreSQL on your system.

Here are some steps to download Apache-AGE:

1.

git clone https://github.com/apache/age.git
cd age
sudo make PG_CONFIG=~/postgresql-11.18/bin/pg_config install

Check out the official documentation for further assistance.