Skip to content

Instantly share code, notes, and snippets.

@cherring
Created February 19, 2010 21:26
Show Gist options
  • Save cherring/309236 to your computer and use it in GitHub Desktop.
Save cherring/309236 to your computer and use it in GitHub Desktop.
$cd ~/src
$ curl -O http://ftp2.au.postgresql.org/pub/postgresql/v8.4.2/postgresql-8.4.2.tar.bz2
$ tar xzvf postgresql-8.4.2.tar.bz2
$ cd postgresql-8.4.2.tar.bz2
$ ./configure
$ make
$ sudo make install
$ echo 'export PATH=/usr/local/pgsql/bin:$PATH' >> ~/.bashrc
$ echo 'export MANPATH=/usr/local/pgsql/man:$MANPATH' >> ~/.bashrc
$ . ~/.bashrc
$ cd ~
$ initdb -D pgdata
$ echo "alias pg_start='cd ~/ && pg_ctl -D pgdata -l pgdata/psql.log start'" >> ~/.bashrc
$ . ~/.bashrc
$ pg_start
$ export PATH=/usr/local/pgsql/bin:${PATH}
$ env ARCHFLAGS="-arch x86_64" gem install pg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment