umake/make

pg_config

igorbonadio opened this issue · 3 comments

Although it compiles my project, the following message is shown when I run make:

make: pg_config: Command not found

I'm using OS X 10.9.5

Tried to solve it on last commit. pg_config was used to find the default directory of includes for PostgreSQL. If it was not installed, it would produce this error.

Why does make need PostgreSQL's includes?

It needs it only when working with Embedded SQL. In this case, PostgreSQL libraries are not found directly inside the system include dir (at least on Linux). I guess it happens because the DBMS creates a subdirectory inside /usr/include. pg_config is useful because it gives the path in any platform.

The variables ESQL and ESQLLIBS have default initializations as part of the politics of having minimal configuration for the default recommended programs.