Skip to content

Instantly share code, notes, and snippets.

@atlasloewenherz
Created March 11, 2014 09:06
Show Gist options
  • Save atlasloewenherz/9482065 to your computer and use it in GitHub Desktop.
Save atlasloewenherz/9482065 to your computer and use it in GitHub Desktop.
Building native extensions with: '--with-pgsql-include=/Applications/Postgres93.app/Contents/MacOS/include --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config --with-pgsql-lib=/Applications/ions/Postgres93.app/Contents/MacOS/lib'
This could take a while...
ERROR: Error installing ruby-postgres:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-pgsql-include=/Applications/Postgres93.app/Contents/MacOS/include --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config --with-pgsql-lib=/Applications/ions/Postgres93.app/Contents/MacOS/lib
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for PQsetClientEncoding()... yes
checking for pg_encoding_to_char()... yes
checking for PQfreemem()... yes
checking for PQescapeString()... yes
checking for PQexecParams()... yes
creating Makefile
make "DESTDIR="
compiling postgres.c
In file included from postgres.c:16:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/backward/rubyio.h:2:2: warning: use "ruby/io.h" instead of "rubyio.h" [-W#warnings]
#warning use "ruby/io.h" instead of "rubyio.h"
^
In file included from postgres.c:17:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/backward/st.h:2:2: warning: use "ruby/st.h" instead of bare "st.h" [-W#warnings]
#warning use "ruby/st.h" instead of bare "st.h"
^
postgres.c:18:10: fatal error: 'intern.h' file not found
#include "intern.h"
^
2 warnings and 1 error generated.
make: *** [postgres.o] Error 1
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ruby-postgres-0.7.1.2006.04.06 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/ruby-postgres-0.7.1.2006.04.06/./gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment