RPostgreSQL icon indicating copy to clipboard operation
RPostgreSQL copied to clipboard

How to find headers in /usr/include/psql?

Open peti opened this issue 3 years ago • 2 comments

The postgresql-devel package on openSUSE Linux install the header files for libpq into the directory /usr/include/pgsql, where the RPostgreSQL build process won't find them. Is there a way to configure that build to discover that directory during its configure phase?

Also, I kinda wonder why configure won't just call

$ pkg-config --cflags libpq
-I/usr/include/pgsql

to discover the necessary compiler flags?

peti avatar Jan 10 '22 07:01 peti

Should pg_config in the PATH, the configure would call pg_config and set as such (not pkg-config).

tomoakin avatar Jan 10 '22 08:01 tomoakin

postgresql-server-devel might contain the program pg_config in openSUSE.

tomoakin avatar Aug 10 '22 01:08 tomoakin