Perform the following steps on your Linux server:
Check if your PostgreSQL server software was installed with your distribution's package manager or by some other method. If you used the package manager, installation is easy - just install the plv8 package that matches your database server version. For example, if you have installed the postgresql-9.
5 package then install the postgresql-9.5-plv8
package, too.
If your PostgreSQL server was installed some other way or you cannot find an appropriate plv8 package, do the following on your Linux server:
Download our Linux plv8 bundle
Copy this to the server Desktop
Find the folder where PostgreSQL is installed. This should have sub-folders named bin
, lib
,
, etc. Write down the full directory path, which looks something like shared
/usr/local/postgres/9.2.4
or /Library/PostgreSQL/9.3
.
Open a Terminal window on your Linux server
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 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.