First, make sure you are in the correct directory. If you have downloaded and extracted Postgres correctly, the directory should have a Makefile and other installation files. You should be in that directory.
If that is not the case, you first need to run a configure command.
See if there is another directory inside pg directory for postgres installation.
Go in that directory if postgres is not directly installed in pg directory but in the directory inside pg directory like in pg/postgres——- and then run make and make install commands
And once the step is done now you can run the below commands to install PG.
cd postgresql-11.18
# configure by setting flags
./configure --enable-debug --enable-cassert --prefix=$(path) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
# now install
make install
7
Answers
You forgot the
install
command. Try this:You have to configure PostgreSQL to ensure that it is tailored to your system by running
./configure --prefix=$(pwd) --enable-cassert --enable-debug
In your Postgres directory.
Then you can run
make && make install
You can check out this blogpost on installing Postgres from source code link
Configure it before make & make install.
Step by step guide is available here.
First, make sure you are in the correct directory. If you have downloaded and extracted Postgres correctly, the directory should have a
Makefile
and other installation files. You should be in that directory.If that is not the case, you first need to run a configure command.
and then install using
Follow this link for a complete installation guide.
See if there is another directory inside
pg
directory for postgres installation.Go in that directory if postgres is not directly installed in
pg
directory but in the directory insidepg
directory like in pg/postgres——- and then runmake
andmake install
commandsIt seems you have forgot configure command
Try to follow this blog step by step, it has all the guide and prerequisite by which you can successfully install apache age.
Make sure you have downloaded postgreSQL correctly and you are currently in the appropriate directory.
If not then use the below commands to install the PostgreSQL again.
Download the files in the folder age-installation/pg
The command downloads and extracts the tar files in the working
And once the step is done now you can run the below commands to install PG.
More help can be taken from PostgreSQL docs