While installing Apache AGE from master branch, on PostgreSQL 14, the following error appeared while issuing make install:
/usr/bin/install: cannot remove '/usr/local/pgsql/lib/age.so': Permission denied
make: \*\*\* \[/usr/local/pgsql/lib/pgxs/src/makefiles/../../src/Makefile.shlib:456: install-lib-shared\] Error 1
What should I do to fix this?
What I tried was using the command sudo chown <user> /usr/local/pgsql/. This didn’t help and the error persisted. Any tips on solving this?
>Solution :
Try using chown with the -R flag, so it will change the owner of all the files within the folder:
sudo chown -R <user> /usr/local/pgsql/
This may fix the issue.