Skip to content

Instantly share code, notes, and snippets.

@inklesspen
Created September 19, 2008 03:05
Show Gist options
  • Save inklesspen/11530 to your computer and use it in GitHub Desktop.
Save inklesspen/11530 to your computer and use it in GitHub Desktop.
# this works
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9.4.0 -I. -DHAVE_SYS_UN_H -DHAVE_SOCKET -DHAVE_GETHOSTNAME -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQESCAPESTRING -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -I/opt/local/include/postgresql83 -c postgres.c
# this is what gem is trying to do. it doesn't work.
/usr/bin/gcc-4.0 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin9.4.0 -I. -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -DHAVE_PQESCAPESTRING -DHAVE_PQEXECPARAMS -I/opt/local/include/postgresql83 -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -fno-common -pipe -fno-common -Wall -c postgres.c
# gem command line: gem install ruby-postgres -- --with-pgsql-include-dir=/opt/local/include/postgresql83 --with-pgsql-lib-dir=/opt/local/lib/postgresql83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment