Skip to content

Instantly share code, notes, and snippets.

@will
Last active August 29, 2015 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save will/9772315 to your computer and use it in GitHub Desktop.
Save will/9772315 to your computer and use it in GitHub Desktop.
Running a devl build of postgres
git clone https://github.com/postgres/postgres.git && cd postgres
./configure --prefix=/tmp/postgres --with-openssl --with-ossp-uuid --with-libs=/usr/local/opt/readline/lib/ --with-includes=/usr/local/opt/readline/include/
# skip the readline parts if you dont have readline installed but it makes `psql` better
make -sj8
make install
/tmp/postgres/bin/initdb /tmp/postgres/data
echo "port = 54321" >> /tmp/postgres/data/postgresql.conf
/tmp/postgres/bin/postgres -D /tmp/postgres/data
/tmp/postgres/bin/psql -p 54321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment