- Install and configure Postgres [https://library.linode.com/databases/postgresql/ubuntu-12.04-precise-pangolin]
- Download latest stable version of plv8 [https://code.google.com/p/plv8js/wiki/PLV8]
- Extract plv8.zip and cd into it.
- sudo apt-get install subversion
- sudo make static
- Copy plv8.so to /usr/lib/postgres/9.1/lib
- Copy plv8--(version).sql and plv8.control to /usr/share/postgres/9.1/extension
- psql -d dbName
- CREATE EXTENSION plv8;
- Repeat 6-8 for plls (livescript) and plcoffee (coffeescript) if required
Created
June 1, 2013 15:56
-
-
Save asleepysamurai/5690830 to your computer and use it in GitHub Desktop.
Install plv8 on Ubuntu
If you're on CircleCI; use Ubuntu 14.04 and this config: https://gist.github.com/benjie/588376004859b3699a6a181379e87f77
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.
🤷♂️
(It’s not abandoned)
Has anyone been able to install on Ubuntu 22.04? If so, a guide?
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.
@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
On modern ubuntu:
sudo apt-get install postgresql-9.5-plv8