I am using the Ruby on Rails 3.1 pre version. I like to use PostgreSQL, but the problem is installing the pg gem. It gives me the following error:
pg
My solution for Fedora 30:
sudo dnf install /usr/include/libpq-fe.h