As a workaround, I created a symbolic link from /usr/local/pgsql to my PostgreSQL directory.

It works… not sure if it’s the best approach, though.

 

 

 

> Hello,

> 

> 

> I’d like to build Kamailio module db_postgres, with the PostgreSQL headers and libs in a non-standard location.

> I’m trying to figure out how to do that, if it’s possible, without having to edit db_postgres/Makefile.

> 

> I see in the Makefile that it’s trying to find the files relative to $(LOCALBASE):

> 

>        # use standard know paths

>        # libpq-fe.h locations

>        DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include \

>                -I$(SYSBASE)/include/pgsql -I$(SYSBASE)/include/postgresql \

>                -I$(SYSBASE)/include/postgresql/8.0

>        LIBS +=-L$(LOCALBASE)/lib -L$(LOCALBASE)/pgsql/lib \

>                -L$(LOCALBASE)/lib/pgsql -lpq

> 

> 

> However, LOCALBASE (which defaults to /usr/local) is used for many things other than PostgreSQL, so changing that is not a great idea, I think…

> 

> Any idea ?

> 

> 

> 

> Regards,

> Nicolas.

> 

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.