I installed postgres version 13 from source code using
wget https://ftp.postgresql.org/pub/source/v13.5/postgresql-13.5.tar.gz && tar -xvf postgresql-13.5.tar.gz && rm -f postgresql-13.5.tar.gz
./configure --enable-debug --enable-cassert --prefix=$(pwd) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
make install
It installed sucessfully and I tried installing AGE using git clone https://github.com/apache/age.git
Then I switched to the branch 1.3.0 using git switch release/PG13/1.3.0
from the AGE directory I set the PG_CONFIG environment variable to the pg_config path using sudo make PG_CONFIG=/home/chidera/bitnine/postgresql-13.5/src/bin/pg_config install
I keep getting this error make: pg_config: Not a directory make: *** No rule to make target 'installcheck'. Stop.
when I run this find / -name pg_config
command inside the directory where my postgresql was installed.
I get this as a response ./home/chidera/bitnine/postgresql-13.5/src/bin/pg_config
I am using WSL and ubuntu.
Installing postgres development files by using this command
sudo apt install postgresql-server-dev-all
before downloading the tar file as stated earlier by someone helped.