Skip to content

Instantly share code, notes, and snippets.

@slyness
Created March 16, 2016 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slyness/196605e89e0850e73c08 to your computer and use it in GitHub Desktop.
Save slyness/196605e89e0850e73c08 to your computer and use it in GitHub Desktop.
/opt/sensu/embedded/bin/ruby -r ./siteconf20160316-15494-msbj6r.rb 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.
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=/opt/sensu/embedded/bin/$(RUBY_BASE_NAME)
--with-pg
--without-pg
--enable-windows-cross
--disable-windows-cross
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--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-pqlib
--without-pqlib
--with-libpqlib
--without-libpqlib
--with-ms/libpqlib
--without-ms/libpqlib
extconf failed, exit code 1
@slyness
Copy link
Author

slyness commented Mar 16, 2016

postgresql libraries are installed:

host% dpkg -l | grep libpq
ii  libpq-dev                            9.4.5-1.pgdg12.4+1                header files for libpq5 (PostgreSQL library)
ii  libpq5                               9.4.5-1.pgdg12.4+1                PostgreSQL C client library

host% dpkg -l | grep postgres
hi  postgresql-9.4                       9.4.5-1.pgdg12.4+1                object-relational SQL database, version 9.4 server
hi  postgresql-client-9.4                9.4.5-1.pgdg12.4+1                front-end programs for PostgreSQL 9.4
hi  postgresql-client-common             170.pgdg12.4+1                    manager for multiple PostgreSQL client versions
hi  postgresql-common                    170.pgdg12.4+1                    PostgreSQL database-cluster manager
ii  postgresql-contrib-9.4               9.4.5-1.pgdg12.4+1                additional facilities for PostgreSQL
ii  postgresql-server-dev-9.4            9.4.5-1.pgdg12.4+1                development files for PostgreSQL 9.4 server-side programming

@slyness
Copy link
Author

slyness commented Mar 16, 2016

commands attempted to build so far (for both 0.18 and 0.17 pg gem versions)

/opt/sensu/embedded/bin/gem install pg

/opt/sensu/embedded/bin/gem install pg -- --with-pg-config=/usr/bin/pg_config

ARCHFLAGS="-arch x86_64" /opt/sensu/embedded/bin/gem install pg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment