postgresql - Unable to install gem pg for ruby on rails -


this question has answer here:

after trying couple of ways install homebrew , rvm still cannot install gem pg

i used stackoverflow answered questions, did not me @ all.

i using postgresql app

my question doing wrong? did not created user pg because main problem cannot install pg on mac

$ sudo gem install pg -v '0.19.0' building native extensions.  take while... error:  error installing pg:     error: failed build gem native extension.      /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby extconf.rb checking pg_config... yes using config values /usr/local/bin/pg_config checking libpq-fe.h... yes checking libpq/libpq-fs.h... yes checking pg_config_manual.h... yes checking pqconnectdb() in -lpq... no checking pqconnectdb() in -llibpq... no checking pqconnectdb() in -lms/libpq... no can't find postgresql client library (libpq) *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  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=/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby     --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}/     --with-pqlib     --without-pqlib     --with-libpqlib     --without-libpqlib     --with-ms/libpqlib     --without-ms/libpqlib   gem files remain installed in /library/ruby/gems/2.0.0/gems/pg-0.19.0 inspection. results logged /library/ruby/gems/2.0.0/gems/pg-0.19.0/ext/gem_make.out 

it says can't find postgresql client library.

have @ answer. it's output in question is, can see, line line same 1 you're having.

can't find postgresql client library (libpq)


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -