I had this problem, this worked for me:
Install the postgresql-devel package, this will solve the issue of pg_config missing.
sudo apt-get install libpq-dev
I had this problem, this worked for me:
Install the postgresql-devel package, this will solve the issue of pg_config missing.
sudo apt-get install libpq-dev