Skip to content

Instantly share code, notes, and snippets.

@kcwu
Created August 27, 2013 18:09
Show Gist options
  • Save kcwu/6356975 to your computer and use it in GitHub Desktop.
Save kcwu/6356975 to your computer and use it in GitHub Desktop.
Install pgrest on FreeBSD -current
1. postgresql
install /usr/ports/databases/postgresql93-server/
# p.s. I haven't applied following patch.
# http://www.freebsd.org/cgi/query-pr.cgi?pr=175783
2. plv8js
git clone https://code.google.com/p/plv8js/
cd plv8js
gmake CUSTOM_CC=g++46 # if failed, reinstall gcc46
gmake CUSTOM_CC=g++46 install
# this will install following files
# /usr/local/lib/postgresql/plv8.so
# /usr/local/share/postgresql/extension/pl{v8,coffee,ls}*
3. livescript
npm i -g LiveScript@1.1.x
4. pgrest
npm i -g pgrest
@lwhsu
Copy link

lwhsu commented Nov 28, 2014

It seems that http://www.freebsd.org/cgi/query-pr.cgi?pr=175783 is needed in SMP environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment