2013-12-20 7 views
6

beim Laufen Bündel installieren (oder gem install pg) bekomme ich folgende Fehler ich habe bereits versucht, die Xcode Kommandozeilen-Tools zur Festsetzunggem install pg nicht auf OSX 10.9

/Users/josh/.rvm/rubies/ruby-2.0.0-p353/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 for more details. You may 
need configuration options. 
  • Rubin 2.0.0
  • Rails 4.0.2
  • OSX 10.9.1

Antwort

9

ich das gleiche Problem heute nur hatte und diese Antwort löste es für mich.

https://stackoverflow.com/a/19620569/91970

Hoffnung, das hilft.

Zusammenfassung

Gebräu Update

Gebräu installieren postgresql

Bündel installieren

+0

vielen Dank Kumpel, arbeitete einen Genuss :) –

+0

Sie sind willkommen :) – marcamillion

5

Als Referenz der Code @marcamillion ist die Verknüpfung an:

brew update 
brew install postgresql 

bundle install 
+0

Fantastische installieren installiert! Das hat mir bei einer Neuinstallation von OS X 10.10.5 geholfen –

3

hatte ich die gleiche Problem .. Ich habe Gemfile.lock geändert und pg (0. 17.1) nur mit pg (0.18.1).

herunterladen PostgreSQL 9.4 und in System

Verwendung folgender Befehl pg jetzt

gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config