Skip to content

Instantly share code, notes, and snippets.

@rascoop
Forked from asleepysamurai/plv8-install-ubuntu.md
Created January 16, 2019 15:30
Show Gist options
  • Save rascoop/8422d76bdbaeb49aa99a31d3bb5bf3e8 to your computer and use it in GitHub Desktop.
Save rascoop/8422d76bdbaeb49aa99a31d3bb5bf3e8 to your computer and use it in GitHub Desktop.
Install plv8 on Ubuntu
  1. Install and configure Postgres [https://library.linode.com/databases/postgresql/ubuntu-12.04-precise-pangolin]
  2. Download latest stable version of plv8 [https://code.google.com/p/plv8js/wiki/PLV8]
  3. Extract plv8.zip and cd into it.
  4. sudo apt-get install subversion
  5. sudo make static
  6. Copy plv8.so to /usr/lib/postgres/9.1/lib
  7. Copy plv8--(version).sql and plv8.control to /usr/share/postgres/9.1/extension
  8. psql -d dbName
  9. CREATE EXTENSION plv8;
  10. Repeat 6-8 for plls (livescript) and plcoffee (coffeescript) if required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment