Rubymine Install Missing Gems

Hello All,

I am using JRuby in Linux Ubuntu 10.10.
In Rubymine IDE, I am getting as “Install Missing Gems” link. After
clicking on that link, I am getting this error :-

Installing pg (0.14.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native

checking for pg_config… yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h… yes
checking for libpq/libpq-fs.h… yes
checking for pg_config_manual.h… yes
checking for PQconnectdb() in -lpq… no
checking for PQconnectdb() in -llibpq… no
checking for PQconnectdb() in -lms/libpq… no
Can’t find the PostgreSQL client library (libpq)
*** 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:

An error occured while installing pg (0.14.1), and Bundler cannot
Make sure that gem install pg -v '0.14.1' succeeds before bundling.

Process finished with exit code 5

In gemfile :-

platforms :ruby do
gem ‘pg’
gem ‘therubyracer’

Any Solutions ?

I am not able to debug also…


Have you installed psql Dev packages? Can’t remember the actual package
name, so you have to look for that name by yourself. Synaptic package
manager should be helpful.
Am 10.10.2012 08:45 schrieb “Avi” [email protected]: