Skip to content

Instantly share code, notes, and snippets.

@asleepysamurai
Created June 1, 2013 15:56
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save asleepysamurai/5690830 to your computer and use it in GitHub Desktop.
Save asleepysamurai/5690830 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
@benjie
Copy link

benjie commented Apr 9, 2016

On modern ubuntu: sudo apt-get install postgresql-9.5-plv8

@benjie
Copy link

benjie commented Sep 17, 2016

If you're on CircleCI; use Ubuntu 14.04 and this config: https://gist.github.com/benjie/588376004859b3699a6a181379e87f77

@ppKrauss
Copy link

ppKrauss commented Aug 2, 2020

Hi @benjie, about UBUNTU 20 LTS and PostgreSQL 12.3 ... I try sudo apt install postgresql-12.3-plv8 and 12, 12.0, 12.1, etc. 11, 11.1, etc. No problem to install old postgresql-9.5-plv8 into newer version?

... Other problem: seems that PLV8 is abandoned.

@benjie
Copy link

benjie commented Aug 2, 2020

🤷‍♂️

(It’s not abandoned)

@thanderoy
Copy link

Has anyone been able to install on Ubuntu 22.04? If so, a guide?

@ArjixWasTaken
Copy link

ArjixWasTaken commented Apr 18, 2024

Has anyone been able to install on Ubuntu 22.04? If so, a guide?

for postgres 16

sudo apt install libtinfo5 build-essential pkg-config libstdc++-12-dev cmake git postgresql-server-dev-16

git clone https://github.com/plv8/plv8
cd plv8
git checkout tags/v3.2.2
make
sudo make install

@thanderoy I know this is kinda too late for you, I shared it for others since this gist is pretty high ranking on google search.

@thanderoy
Copy link

@ArjixWasTaken Too late but thanks. For posterity now. 😄 💪

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