Skip to content

Instantly share code, notes, and snippets.

@wolfieorama
Created August 21, 2016 22:01
Show Gist options
  • Save wolfieorama/510bd3183a0a4811e44b97f531fede94 to your computer and use it in GitHub Desktop.
Save wolfieorama/510bd3183a0a4811e44b97f531fede94 to your computer and use it in GitHub Desktop.
Installing pg 0.18.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/john/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pg-0.18.3/ext
/home/john/.rbenv/versions/2.3.0/bin/ruby -r ./siteconf20160822-26804-1r3jbzc.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
--without-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=/home/john/.rbenv/versions/2.3.0/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
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/john/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/pg-0.18.3/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/john/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/pg-0.18.3 for inspection.
Results logged to /home/john/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/pg-0.18.3/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment