skip to Main Content

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..

2

Answers


  1. 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
    
    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search