I have been using Apache AGE with PostgreSQL version 11-17, installed postgres from source code, but I was informed that it is better to clone it directly. So then I followed these steps:
- Cloned with
git clone https://git.postgresql.org/git/postgresql.git
; - Changed the branch to
origin/REL_12_STABLE
; - Configured with
./configure -prefix=S(pwd) --enable-cassert -enable-debug CFLAGS="-glldb -Og -g3 -fno-omit-frame-pointer"
; - Installed it with
make install
.
Then I went to where Apache AGE was installed and typed the command:
sudo make PG_CONFIG=/Users/.../postgresql/bin/pg_config install
and then I got a bunch of errors:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
make: *** [src/backend/utils/adt/agtype.o] Error 1
I guess that this error occurs due to the fact that I changed to REL_12_STABLE
and AGE works only with REL_12_ALPHA
but with git branch -r
it does not show the alpha version so I can change to it.
Am I following these steps correctly or am I missing something here? Is the REL_12_ALPHA only available from source code?
CodePudding user response:
You should use the branch "REL_12_STABLE" from PostgreSQL and the branch "AGE PG12.1.0 ALPHA" from Apache AGE.