Cannot build native extension with ruby-1.9.3-p125

Issue #118 invalid
Anonymous created an issue

Currently is not possible to install latest version from rubygems (0.13.2) for ruby 1.9.3-p125:

{{{ Updating installed gems Updating pg Fetching: pg-0.13.2.gem (100%) Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension.

    /opt/rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb

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

Switching Ruby back to 1.9.3-p0 allowed successful build.

Comments (1)

  1. Michael Granger repo owner

    I'd suggest taking a look at your mkmf.log (as the output suggests) and see if it explains why it's saying "Can't find the PostgreSQL client library (libpq)". It would suggest that there's something about the build environment used to make the Ruby interpreter in question that doesn't agree with the one used to build PostgreSQL. The log will usually reveal why.

    I've been using 0.13.2 with 1.9.3-p125 in production on multiple platforms since its release, so it does work.

  2. Log in to comment