dgroomes commented on issue #300: URL: https://github.com/apache/age/issues/300#issuecomment-1374708996
I had the same compilation error described by the original issue, I am using macOS, and thanks to jrgemignani's comment about the C function signature difference between Postgres 11 vs Postgres 12, I was able to solve my problem. ## Problem I unknowingly had a HomeBrew-installed Postgres 14 on my PATH. When I execute `make install` in the Apache AGE project, the compiler would find Postgres 14 code. Postgres 14 is not supported. ## Workaround Follow the helpful installation instructions in the Apache AGE README that guide you to point to a specific Postgres installation location when you run `make`. Specifically, run your `make install` command like this: ```shell make PG_CONFIG=/path/to/postgres/bin/pg_config install ``` In my case, I had built and installed Postgres 11 from source, which installed to `/usr/local/pgsql`. So, I used ```shell make PG_CONFIG=/usr/local/pgsql/bin/pg_config install ``` And the project compiled. ✅ . --- I suggest anyone having issues share the output of their `pg_config` command. For me, this command made it clear that my environment was still pointing to Postgres 14 (despite my best efforts to install Postgres 11). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@age.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org