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 extension.

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: –with-opt-dir –with-opt-include –without-opt-include=${opt-dir}/include –with-opt-lib –without-opt-lib=${opt-dir}/lib –with-make-prog –without-make-prog –srcdir=. –curdir –ruby= –with-pg –without-pg –with-pg-dir –without-pg-dir –with-pg-include –without-pg-include=${pg-dir}/include –with-pg-lib –without-pg-lib=${pg-dir}/lib –with-pg-config –without-pg-config –with-pg_config –without-pg_config –with-pqlib –without-pqlib –with-libpqlib –without-libpqlib –with-ms/libpqlib –without-ms/libpqlib

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

Process finished with exit code 5

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.