Skip to content

Instantly share code, notes, and snippets.

@mlapshin
Created June 10, 2014 08:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
sudo apt-get install -y git build-essential gettext libreadline6 libreadline6-dev zlib1g-dev flex bison libxml2-dev libxslt-dev
test -d postgresql || git clone --depth=1 git://git.postgresql.org/git/postgresql.git postgresql
PROJECT_PATH=`pwd`
PG_PATH=`pwd`/build
cd postgresql
export XML2_CONFIG=`which xml2-config`
./configure --prefix=$PG_PATH --with-libxml
make
make install
cd ..
# COPY THIS to .bashrc or .zshrc
export PATH=$PATH:$PG_PATH/bin
export PGDATA=`pwd`/data
test -d $PGDATA || initdb -D $PGDATA
pg_ctl -D $PGDATA start
# build pgcrypto
cd postgresql/contrib/pgcrypto
make
make install
make installcheck
createuser -s fhir
psql -d postgres -E '\password fhir'
# build jsquery
cd $PROJECT_PATH
git clone git@github.com:akorotkov/jsquery.git postgresql/contrib/jsquery
cd postgresql/contrib/jsquery
make
make install
make installcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment