I have R (3.1.1) and PostgreSQL 9.4 installed on Debian 7.6.
I want to install RPostgreSQL but the compilation fails with the following error:
In file included from RS-PQescape.c:7:0:
RS-PostgreSQL.h:23:26: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
make: *** [RS-PQescape.o] Error 1
ERROR: compilation failed for package ‘RPostgreSQL’
* removing ‘/home/mert/R/x86_64-pc-linux-gnu-library/3.1/RPostgreSQL’
A previous question on this error says that the file is included here:
/usr/pgsql-9.3/include/libpq-fe.h
I searched on my computer for pgsql and libpq but no such file exists at all:
$ locate libpq
/usr/lib/postgresql/9.4/lib/libpqwalreceiver.so
/usr/lib/x86_64-linux-gnu/libpq.so.5
/usr/lib/x86_64-linux-gnu/libpq.so.5.7
/usr/share/doc/libpq5
$ locate pgsql
/usr/lib/postgresql/9.4/lib/plpgsql.so
/usr/share/postgresql/9.4/extension/plpgsql--1.0.sql
/usr/share/postgresql/9.4/extension/plpgsql--unpackaged--1.0.sql
/usr/share/postgresql/9.4/extension/plpgsql.control
Do you have any idea on how to solve this problem?