ruby on rails - Bundle errors when installing postgres gem -
i trying install gem pg
keep getting error returned in terminal. have pg installed, installed brew. ran gem install pg , tell me pg installed.
here error get.
gem::installer::extensionbuilderror: 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 /var/folders/l7/f3_r_hhs46lfprth_1pw57vw0000gn/t/bundler20150320-66140-15yne3b/pg-0.18.1/gems/pg-0.18.1 inspection. results logged /var/folders/l7/f3_r_hhs46lfprth_1pw57vw0000gn/t/bundler20150320-66140-15yne3b/pg-0.18.1/gems/pg-0.18.1/ext/gem_make.out error occurred while installing pg (0.18.1), , bundler cannot continue. make sure `gem install pg -v '0.18.1'` succeeds before bundling.
to tell system use gem have installed on machine
try
brew install postgresql
or try
archflags="-arch x86_64" bundle install
Comments
Post a Comment