I'm learning to use ruby on rails on windows 8.1. I got stuck when I had to install pg(postgres) gem. To be specific, this is the error:
Error: Error installing pg:
Error: failed to build gem natve extension
C:/Rails Installer/Ruby2.1.0/bin/ruby.exe extconf.rb
checking for pg_config... no
No pg_confg... trying anyway. If build fails, please try again with --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
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 headers. Check the mkmf.log file for more details.
I'm stuck, any suggestion will help. Thanks