0

I recently downloaded the PostgreSQL Interactive installer by EDB from the official website (https://www.postgresql.org/download/macosx/) and successfully installed it in the Macintosh HD Library folder. Following the instructions in a YouTube video (https://www.youtube.com/watch?v=0-qMwpDh0CA&t=201s&ab_channel=%EB%B9%84%ED%8A%B8%EB%82%98%EC%9D%B8Bitnine), I cloned Apache AGE from GitHub (https://github.com/apache/age).

However, when I attempt to run the command "sudo make PG_CONFIG=~Library/PostgreSQL/15/bin/pg_config install" to install Apache AGE, I encounter the following error:

"bin/sh: ~Library/PostgreSQL/15/bin/pg_config: No such file or directory make: *** No rule to make target `install'. Stop."

Is there a mistake in the command or any additional steps I need to take after installing PostgreSQL using the Interactive installer?

Thank you in advance for your assistance!

Could someone please guide me on how to resolve this error and successfully install Apache AGE on macOS? I would greatly appreciate any insights or suggestions to troubleshoot this problem.

  • This is quite a common error. You could take help from the answers given to similar questions [here](https://stackoverflow.com/search?q=%5Bapache-age%5D+No+rule+to+make+target+%60install%27) – Zainab Saad Jun 11 '23 at 07:29

8 Answers8

0

It looks like there might be a slight error in the command you're using to install Apache AGE. The tilde character (~) in the path to pg_config is causing the shell to interpret it as a literal string instead of expanding it to the home directory path.

To fix that make sure you provide the correct path for example sudo make PG_CONFIG=/Library/PostgreSQL/15/bin/pg_config install (remove ~).

I hope this solves the problem for you.

ahmed_131313
  • 142
  • 6
0

Your system can’t locate your pg_config executable, from the error message, it’s shows that your system isn’t expanding ~ so best approach is to copy the full absolute path.

Peter
  • 43
  • 4
0

I think this problem occured due to your postgreSQL installation process. Could you share plz which how you have installed PostgreSQL, if you are using Homebrew, that it will create problem. Most easiest way is to download the postgresql source code and then try to install apache age on that folder.

MAHMUDUL
  • 1
  • 2
0

It seems that we both have faced somewhat similar errors, there might be an error in the command you're using to install Apache AGE, ~ might be the cause. It would be better to debug it from the start, looking at all your command.

This tutorial blog really helped me install PostgreSQL and apacheAGE on my macOS easily.

It contains the step by step approach to install and run apacheAGE on macos in easy words with all the required commands. Hope this helps you too!

  • I followed all the steps but as I reach step 16 **initdb** this gives me a warning (initdb: warning: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.) which on step 17 gives an error stating(waiting for server to start.... stopped waiting pg_ctl: could not start server Examine the log output. ) @Muhammad Sarmad – Muhammad Suhaib Jun 19 '23 at 11:41
0

The answers above highlight your issue very well. For a more comprehensive solution you may check out this video which is a step-by-step tutorial to install AGE on macOS.

Shanzay
  • 19
  • 3
0

You should try installing postgres using source code. It gives you more control over different configuration and path settings which in turn helps in the setup of AGE, specifically the PG_CONFIG which runs before make command for setting up postgres.

This tutorial is really good for setting up both using source code:

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

0

Please follow the official documentation to install Apache AGE from source code. Remove any previous installations of PostgreSQL and AGE, and follow the steps given here.

0

Try to use the find command to find the pg_config executable path. So you can type in your terminal the command

find / -name pg_config

check for the one residing in the PostgreSQL 15 and copy the absolute path use that as your value for the name PG_CONFIG

Peter
  • 43
  • 4