skip to Main Content

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.

4

Answers


  1. For PG13 use the version linked here:
    https://dist.apache.org/repos/dist/dev/age/PG13/1.3.0.rc0/

    The line number 67 that has been referenced in the error is different in the PG13 version than it is in the master branch on github, because the master branch on github is not PG13 compatible.

    Line 67 is actually the beginning of this comment.

        /*
         * CatalogTupleInsert() is originally for PostgreSQL's catalog. However,
         * it is used at here for convenience.
         */
        CatalogTupleInsert(ag_graph, tuple);
    
        table_close(ag_graph, RowExclusiveLock);
    }
    

    Try installing for PG13 with the version I linked.

    Login or Signup to reply.
  2. Make sure the git branch of apacheAGE and the postgres that you have installed are compatible

    Login or Signup to reply.
  3. You should use PostgreSQL V 11 or 12 to be compatible with Apache AGE.

    Login or Signup to reply.
  4. You should use the following command before running make:

    git checkout PG13
    

    This ensures that you are on the correct branch of Apache AGE for Postgres 13. After that, you can use the following commands:

    sudo make PG_CONFIG=/path-to-postgres/data/bin/pg_config
    sudo make PG_CONFIG=/path-to-postgres/data/bin/pg_config install
    

    If the errors persists, make sure you have updated your system packages and installed all the libraries that Apache AGE requires by running the following command:

    sudo apt update
    sudo apt install git libreadline-dev zlib1g-dev bison flex build-essential
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search