pg

Cannot install pg gem in Mavericks with Postgres.app

此生再无相见时 提交于 2019-11-26 14:59:39
问题 I am trying to install the pg gem for use with Postgres.app on my local machine. I am running Mavericks. Postgres.app is installed and running fine, but I cannot get the gem to work. I've done the following: Used the command 'env ARCHFLAGS="-arch x86_64" gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_config' from the Postgres.app documentation Updated Homebrew and installed the Apple GCC 4.2 Installed the Xcode developer tools Updated my $PATH to reference

Rails 3 - can't install pg gem

橙三吉。 提交于 2019-11-26 12:03:31
When I try to run bundle (bundle install), I all the time get Installing pg (0.13.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/ryan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file

ERROR: Failed to build gem native extension on Mavericks

余生长醉 提交于 2019-11-26 09:46:31
问题 I\'m attempting to run bundle in my Rails project on OSX 10.9. It fails when getting to the pg gem with this error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/kyledecot/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for pg_config_manual

How to install PostgreSQL's pg gem on Ubuntu?

北战南征 提交于 2019-11-26 08:54:20
问题 I\'m trying to install PostgreSQL\'s pg gem for Ruby. I issued the following command: gem install pg I installed Ruby 1.9.2 using RVM. The above command shows me the following error. The error is : Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/User/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby extconf.rb checking for pg_config... yes checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking

gem install pg --with-pg-config works, bundle fails

会有一股神秘感。 提交于 2019-11-26 07:57:06
问题 WhenI run (as root) gem install pg -v \'0.12.0\' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config I get the following output: #-> gem instal pg -v \'0.12.0\' -- --with-pg-config=/usr/pgsql-9.1/bin/pg_config Building native extensions. This could take a while... Successfully installed pg-0.12.0 1 gem installed Installing ri documentation for pg-0.12.0... Installing RDoc documentation for pg-0.12.0... #-> When I run bundle install: Installing pg (0.12.0) with native extensions Gem::Installer:

PG::ConnectionBad - could not connect to server: Connection refused

橙三吉。 提交于 2019-11-26 05:33:14
Everytime I run my rails 4.0 server, I get this output. Started GET "/" for 127.0.0.1 at 2013-11-06 23:56:36 -0500 PG::ConnectionBad - could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (fe80::1) and accepting TCP/IP connections on port 5432? : activerecord (4.0.0) lib

Rails 3 - can't install pg gem

北慕城南 提交于 2019-11-26 02:41:25
问题 When I try to run bundle (bundle install), I all the time get Installing pg (0.13.2) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/ryan/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can\'t find the \'libpq-fe.h header *** extconf.rb failed *** Could not create