Wygląda na to, że w Ubuntu ten nagłówek jest częścią libpq-dev pakiet (przynajmniej w następujących wersjach Ubuntu:11.04 (Natty Narwhal), 10.04 (Lucid Lynx), 11.10 (Oneiric Ocelot), 12.04 (Precise Pangolin), 14.04 (Trusty Tahr) i 18.04 (Bionic Beaver)):
...
/usr/include/postgresql/libpq-fe.h
...
Więc spróbuj zainstalować libpq-dev lub jego odpowiednik dla twojego systemu operacyjnego:
- Dla systemów Ubuntu/Debian:
sudo apt-get install libpq-dev - W systemach Red Hat Linux (RHEL):
yum install postgresql-devel - Dla Mac Homebrew:
brew install postgresql - Dla Mac Ports PostgreSQL:
gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config - Dla OpenSuse:
zypper in postgresql-devel - Dla ArchLinux:
pacman -S postgresql-libs