I am trying to install apacheage with the help of documentation. But I was having the same problems as asked in the question. So, I followed this answer to the above question.
All the errors which I was getting was solved but I am now getting the this new error. I tried using sudo but this error remains same.
/usr/bin/install -c -m 755 age.so '/usr/lib/postgresql/12/lib/age.so'
/usr/bin/install: cannot create regular file '/usr/lib/postgresql/12/lib/age.so': Permission denied
make: *** [/usr/lib/postgresql/12/lib/pgxs/src/makefiles/../../src/Makefile.shlib:487: install-lib-shared] Error 1
I am using Ubuntu 22.04 and installed postgresql using
sudo apt install postgresql-server-dev-12
.
I tried installing using master branch branch but I am getting the following error with that.
src/backend/catalog/ag_graph.c:67:15: error: void value not ignored as it ought to be
67 | graph_oid = CatalogTupleInsert(ag_graph, tuple);
| ^
make: *** [<builtin>: src/backend/catalog/ag_graph.o] Error 1