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.
4
Answers
The provided path is wrong and/or pg_config is not exported in the system PATH variable.
While installing PostgreSQL that command is not correct, the command you are mentioning is used while installation of Apache AGE.
You need to review the installation process from the source code through the documentation website.
For mac installation you can check that video: https://www.youtube.com/watch?v=0-qMwpDh0CA
Also if you are using WSL (because ability to use sudo and make while your directory is structured under windows structure) You should follow the WSL directories which should be something like that
**/mnt/c/Users/ .. etc**
Take care while installing Apache AGE on WSL it is better to install it at a path exists in the system better than usage of windows files (which will be after /mnt)
Please check out this walk-through video created by formal Apache-age employee.
https://youtu.be/0-qMwpDh0CA
This might be overwhelming but you get all in one. Post your queries if you find any other issues.
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 thebin
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.