I have RHEL 6.5 Server with an installation of R (3.1.1) & RStudioServer (0.98.1062)
I have postgresql-9.3 installed and handling a large database. In order to conne
I ended up looking into the RPostgreSQL configure file in the tarball, searched for the file name the script couldn't find and decided it was easiest to create an environmental variable:
export PG_INCDIR=/usr/pgsql-9.3/include/
Worked like a charm after that.
If you have sudo rights, you could also try:
yum install postgresql-devel
Followup info because I just had the same problem.
Installing yum install postgresql-devel
resolves the error too.