-
-
Save michael-lu-cn/11373541 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://nonantolando.blogspot.tw/2012/10/using-json-on-ubuntu-1204-server-with.html | |
| sudo apt-get install libv8-3.7.12.22 libv8-dev | |
| # Install d8 | |
| # http://askubuntu.com/questions/141252/is-there-a-package-for-an-executable-version-of-v8 | |
| svn checkout http://v8.googlecode.com/svn/trunk/ ./v8 | |
| cd v8 | |
| make dependencies | |
| make native | |
| sudo ln -s `pwd`/out/native/d8 /usr/local/bin/d8 | |
| # Install plv8 | |
| wget https://plv8js.googlecode.com/files/plv8-1.3.0.zip | |
| unzip plv8-1.3.0.zip | |
| cd plv8-1.3.0 | |
| make | |
| sudo make install | |
| # Make sure npm is installed | |
| sudo apt-get install npm | |
| # create extension | |
| psql -c "create extension plv8" | |
| # NODE https://github.com/brianc/node-postgres/issues/335#issuecomment-16707881 | |
| sudo apt-get remove nodejs | |
| sudo add-apt-repository ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install nodejs | |
| # | |
| sudo npm i -g LiveScript | |
| sudo npm install [email protected] -g | |
| # Install plv8x | |
| sudo npm i -g plv8x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment