-3
sudo make PG_CONFIG=/Users/pawankukreja/age_installation/pg/postgres/postgresql-12.0/bin/pg_config install;

make: /Users/pawankukreja/age_installation/pg/postgres/postgresql-12.0/bin/pg_config: Command not found make: *** No rule to make target `install'. Stop.

I found this error while installing the PostgreSQL, I want to install apache age and PostgreSQL but encountered this error while installing

12 Answers12

0
  • Make sure that PostgreSQL is installed properly in which pg_config is also available, you can download it using the following command:
brew install postgresql

After that install Apache Age using the following command:

pip install apache-age
  • Secondly, make sure that the path should be correct and it should be added in the PATH variable
adil shahid
  • 125
  • 4
0

Make sure to provide correct path to your PostgreSQL installation as it is clearly indicated from error message that pg_config path is incorrect.
If you encountering issues on WSL, ensure you are using correct paths in the Linux filesystem.

-1

The provided path is wrong and/or pg_config is not exported in the system PATH variable.

-1

Firstly, make sure you're not using sudo commands as they can hinder the check process we use.

Secondly, make sure you're installing the correct version of PostgreSQL to be compatible with AGE.

You may use this blogpost I wrote to help you out in case you're still unsure what versions you want or what steps to follow. There is also a video tutorial available on Youtube if you search the same keywords in your question.

Finally, the error you are getting is because the pgconfig file cannot be located. It should be in the bin folder. You can copy the path from there and paste it in your command or make sure you have all the files required. I'd suggest a fresh install if you're still facing similar issues.

Shanzay
  • 19
  • 3
-1

The path is incorrect, please verify the correct PATH of the pg_config

Marcos Silva
  • 115
  • 5
-1

The path and the procedure is not quite right. Try using configure ccommand before make and then the other steps.

This link provides a very good step by step intallation process for both postgresql and AGE.

https://www.youtube.com/watch?v=0-qMwpDh0CA&ab_channel=%EB%B9%84%ED%8A%B8%EB%82%98%EC%9D%B8Bitnine

Also make sure to use compatible versions of postgres and age.

-1

The path is wrong for the command as the pgconfig file cannot be located by this. There is a video tutorial for this, but I found this blog straightforward to follow and I had no problem installing my PostgreSQL and Apache AGE.

I hope this helps you!

-1

your command and path to pg_config seem incorrect.

Try some other manual to get the right steps to install PostgreSQL and AGE.

Reference link

helvete
  • 2,455
  • 13
  • 33
  • 37
  • [Link only answers](https://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers/8259#8259) are considered very low quality and [can get deleted](https://stackoverflow.com/help/deleted-answers), please put the important parts from the linked resource into the answer body. – helvete Aug 16 '23 at 07:19
  • I have shared that path seems incorrect for a particular position. Link is for full guidance to install this issue. – Vinay-Agens Aug 17 '23 at 18:18
-1

The path to the PG_CONFIG utility does not seem to be correct. Make sure postgres is installed correctly.

If it is installed correctly, then try running the PG_CONFIG command directly from the terminal. If you can run the command then you can type which pg_config to find the path of the utility.

Hassoo
  • 85
  • 11
-1

From the error message it obvious the provided pg_config path is wrong. Confirm that the path you provided points to the correct pg_config executable, it must be the executable file, not the directory. I’d assume you know your way around the terminal, try to find the correct install path of PostgreSQL on your machine and locate the pg_config binary file and copy the absolute path. Use that as the PG_CONFIG environment variable to the make install command.

Peter
  • 43
  • 4
-1

I presume you are done installing Postgres, and you are currently installing AGE. The error you are encountering suggests that the path to pg_config is not correct, you can run this command find / -name pg_config to find the exact path to the pg_config then proceed with your installation.

-1

The pg_config path is wrong, make sure that PostgreSQL is installed correctly.

Aadil Bashir
  • 111
  • 5