Unable to install PG gem on Fedora 17 Unable to install PG gem on Fedora 17 postgresql postgresql

Unable to install PG gem on Fedora 17


this is solved with

$ yum install /usr/include/libpq-fe.h


For Fedora 20+, following package is needed:

sudo yum install postgresql-devel


for fedora 30:

$sudo dnf install libpq-devel

then:

$gem install pgBuilding native extensions. This could take a while...Successfully installed pg-1.1.4Parsing documentation for pg-1.1.4Installing ri documentation for pg-1.1.4Done installing documentation for pg after 1 seconds1 gem installed