https://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header-when-trying-to-install-pg-gem
- For Ubuntu systems:
sudo apt-get install libpq-dev - On Red Hat Linux (RHEL) systems:
yum install postgresql-devel - For Mac Homebrew:
brew install postgresql - For Mac MacPorts PostgreSQL:
gem install pg -- --with-pg-config=/opt/local/lib/postgresql[version number]/bin/pg_config - For OpenSuse:
zypper in postgresql-devel