Adding PL/v8 support to MacPorts version of PostgreSQL


jlg's picture

Anyone using the MacPorts version of PostgreSQL to run xTuple will run into difficulties installing the PL/v8 extension. This fix works for me.

Follow the instructions at for Mac OS X.

Before running the "" script, edit the script and find the line that reads:


Change this line to read:

(You'll want to change the exact path to match your installed version of PostgreSQL. Here it's 9.3.x.)
Save & exit, then execute the script. When prompted for the PostgreSQL installation path, enter "/opt/local" and everything should work properly.
gmoskowitz's picture
Joined: 12/10/2008
it's even easier that that


Installing PL/v8 is supposed to be even easier than that - no script editing required:

$ ./ -h       # for usage information
$ ./ /opt/local/lib/postgresql93

Does this fail with MacPorts?