skip to Main Content

I’m trying to install Age with PostgreSQL 11, but I’m facing a "Permission denied" error. When running the command
bash-3.2$ sudo make PG_CONFIG=/Users/moiz/Apache_age/postgresql/src/bin/pg_config install,
it gives the following error:

bash-3.2$make: execvp: /Users/moiz/Apache_age/postgresql/src/bin/pg_config: Permission denied
bash-3.2$make: *** No rule to make target `install'.  Stop.

I have already tried changing the permissions of the pg_config file using
chmod +x /Users/moiz/Apache_age/postgresql/src/bin/pg_config
and changing the ownership using
sudo chown moiz /Users/moiz/Apache_age/postgresql/src/bin/pg_config, but the issue persists.

2

Answers


  1. When you specify the path on chmod and chown don’t include /pg_config like so:

    chmod +x /Users/moiz/Apache_age/postgresql/src/bin
    sudo chown moiz /Users/moiz/Apache_age/postgresql/src/bin
    
    Login or Signup to reply.
  2. I had the same issues when installing. I would advise you to change your installation directory of postgres 11. I installed it by giving the path $HOME/pg_11 and then used it while installing AGE from source code.

    If you need more precise instructions, i would advise you to go through this article which shows how you can install from source code and start to modify it.

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