I was trying to reinstall Apache Age on my Laptop which uses Ubuntu 22.04, the command I used to install Apache Age is
sudo apt install postgresql-12 postgresql-server-dev-12
followed by using the command
make install
But then I face the following error
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -ggdb -Og -fno-omit-frame-pointer -fPIC -I.//src/include -I.//src/include/parser -I. -I./ -I/usr/include/postgresql/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -c -o src/backend/catalog/ag_graph.o src/backend/catalog/ag_graph.c
src/backend/catalog/ag_graph.c: In function ‘insert_graph’:
src/backend/catalog/ag_graph.c:67:13: 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
I will be really grateful If you could let me know, how to resolve this, as previously I did not face this issue.
Do make sure that the related dependencies are installed
sudo apt-get install build-essential libreadline-dev zlib1g-dev flex bison
. Secondly, for some reason I also ran into a similar issue while installing it from APT so I installed postgres directly using the source code.tar -xzf filename.tar.gz
./configure --prefix=$(pwd) --enable-cassert --enable-debug CFLAGS="-ggdb -Og -g3 -fno-omit-frame-pointer"
make install
to lastly install it.Try that and hopefully it should work.