Perform the following steps on your Mac server:
Download our Mac plv8 bundle
Copy this to the server Desktop
Find the folder where PostgreSQL is installed. This should have sub-folders named bin
, lib
, shared
, etc. Write down the full directory path, which looks something like /usr/local/postgres/9.2.4
or /Library/PostgreSQL/9.3
.
Open a Terminal window on your Mac
Type the following ($ is the shell prompt - don't type that part):
$ cd Desktop$ tar xf xtuple_plv8.tgz # if "xtuple_plv8.tgz" doesn't exist, try "xtuple_plv8.tar"
$ cd xtuple_plv8
$ sudo ./install_plv8.sh
Enter your password when install_plv8.sh
asks
Enter the full path to the PostgreSQL installation directory when install_plv8.sh
asks. If you make a mistake, it'll just ask again. Type CTRL-C
to quit if you can't remember the full path.
install_plv8.sh
will run for another second or two and you'll get a shell prompt back.
Now create the extension as described above.