Skip to content

Instantly share code, notes, and snippets.

Created October 22, 2009 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Install pg gem under 1.9.1
# get rid of the pg if you have it already; you might want to do this for ruby-pg as well
gem uninstall pg
# change to some convenient working directory
cd ~/src
svn checkout
cd svn/ruby-pg/trunk/ext
# download and install the patch
curl -O
patch < pg-patch.txt
# set up an important environment variable
export ARCHFLAGS='-arch i386'
ruby extconf.rb
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment