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?
3
Answers
Try using chown with the -R flag, so it will change the owner of all the files within the folder:
This may fix the issue.
I hope
sudo chown -R <user> /usr/local/pgsql/
has solved your problem.As per official documentation, AGE doesn’t support PostgreSQL-14 yet.
Reference
your libraries are not installed first do
then do
then install postgres 12 version
after that do sudo make