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
When you specify the path on
chmod
andchown
don’t include/pg_config
like so: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.