Skip to content

Instantly share code, notes, and snippets.

@jcf

jcf/Patch pg

Created Oct 22, 2009
Embed
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 http://ruby-pg.rubyforge.org/svn
cd svn/ruby-pg/trunk/ext
# download and install the patch
curl -O http://gist.github.com/raw/215956/54166b63f9cce030232b09397934315f004fb649/pg-patch.txt
patch < pg-patch.txt
# set up an important environment variable
export ARCHFLAGS='-arch i386'
ruby extconf.rb
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment