Can\'t find the \'libpq-fe.h header
** extconf.rb failed **
Could not create Makefile due to some reason, probably lack of necessary libraries and/or
Windows solution
As @givanse said, the mkmf logs are in the gem installation directory. Because that can be complicated, you should just search for the mkmf file. You can do that in Windows explorer or in PowerShell
cd C:\Dev\Ruby22 # Change to reflect your Ruby install dir
Get-ChildItem mkmf* -Recurse