-2

I am trying to install PostgreSQL and Apache AGE-DB on Ubuntu 20.04, but upon configuring Apache Age with PostgreSQL I am getting this error **make: *** No rule to make target. **

I am trying to run this command, I think the path is correctly mentioned here or am I missing something?

sudo make PG_CONFIG=/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/bin/pg_config install

It produces the following error

Makefile:118: /home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/lib/postgresql/pgxs/src/makefiles/pgxs.mk: No such file or directory
make: *** No rule to make target '/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/lib/postgresql/pgxs/src/makefiles/pgxs.mk'.  Stop.
Abdul
  • 69
  • 5

9 Answers9

0

I think the repository is not cloned correctly. Try cloning the repository again and then execute the same command.

git clone https://github.com/apache/age.git

cd age/
sudo make PG_CONFIG=/home/talhastinyasylum/Desktop/age_installation/pg/postgresql-11.18/bin/pg_config install
make PG_CONFIG=/home/talhastinyasylum/Desktop/age_installation/pg/postgresql-8/bin/pg_config installcheck
Talha Munir
  • 121
  • 5
0

I'd suggest you use a relative path from your present working directory.

For Example, If

$ pwd
/home/abdulsamad/Downloads/age_installation

Then

sudo make PG_CONFIG=../pg/postgresql-11.18/bin/pg_config install
0

I think installation or cloning didn't went well. Clone the age repo and installation process again. for cloning run the following command.

git clone https://github.com/apache/age.git

and do installation again using your above command.

sudo make PG_CONFIG=/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/bin/pg_config install

0

I also faced the same problem during installting AGE on linux. Deleting the directory and cloning again worked for me.

your can follow these commands to clone the AGE repo.

git clone https://github.com/apache/age.git

And then run command.

sudo make PG_CONFIG=/home/username/age_installation/pg/postgresql-11.18/bin/pg_config install

To check your username you can run command in terminal.

whoami

This will show you your username that you can replace in the command above.

0

I had the same error, installing the build tool using this command sudo apt install postgresql-server-dev-allfor multiple postgreSQL version helped.

0

Your make command is not working as it cannot find as the PG_CONFIG variable in the command is not the correct path to the file. Something must have gone wrong during either cloning or you're not providing the correct directory for the pgconfig file. You could manually search for the file, copy path and paste that here in this command or if you're sure the path isn't the issue you can try cloning AGE again.

Shanzay
  • 19
  • 3
0
git clone https://github.com/apache/age.git myage
cd myage
export PATH="$PATH:/home/pg/dist/postgresql-12.0/bin/";
export LD_LIBRARY_PATH="/home/pg/dist/postgresql-12.0/lib/"
sudo make PG_CONFIG=/home/pg/dist/postgresql-12.0/bin/pg_config install
0

Here are some steps, that might help you.

  • Clone the repository again.
  • Integrate Postgres in AGE by using this command: sudo make PG_CONFIG=~/postgresql-11.18/bin/pg_config install.
  • Make sure you have compatible versions.
  • Make sure you have the required permissions.
  • Give the correct path.
0

The file pgxs.mk is not located in the bin directory. It is located in the lib/postgresql/ogxs/src/makefiles directory

To fix this error you need to change the path in the PG_CONFIG environment variable to point to the pgxs.mk file. The correct path is:

PG_CONFIG=/home/abdulsamad/Downloads/age_installation/pg/postgresql-11.18/lib/postgresql/pgxs/src/makefiles/pgxs.mk

Once you have changed the path try running the "make install" command again.