please help me in this… I am unable to install pg gem file
[[email protected] ~]# gem install pg -v ‘0.12.0’
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>’:
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your
Fetching: rake-compiler-0.8.1.gem (100%)
Fetching: pg-0.12.0.gem (100%)
Building native extensions. This could take a while…
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
checking for pg_config… no
No pg_config… trying anyway. If building fails, please try again with
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. You may need configuration options.
Provided configuration options:
Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/pg-0.12.0 for inspection.
Results logged to