next up previous contents
Next: Setting the postgres password Up: Macintosh and Linux Previous: Compiling from source   Contents

Installing pgcrypto

tkDerm version 1.3.2 or later can encrypt patient's data by using a PostgreSQL contribution module "pgcrypto". If you build PostgreSQL from the source, you should build the pgcrypto module from the source tree as explained below.

  1. Go to the contrib/pgcrypto subdirectory in the source tree.
  2. Compile the module by make.
  3. After becoming the superuser by su or sudo command, install the module by make install.

Here is how this might be done:

				   
$ cd postgresql-8.x.x/contrib/pgcrypto
$ make
on Macintosh
$ sudo make install
on Linux
$ su
# make install

By the above steps, these files will be copied.

/usr/local/pgsql/share/contrib/pgcrypto.sql
/usr/local/pgsql/share/contrib/uninstall_pgcrypto.sql
/usr/local/pgsql/lib/pgcrypto.so



manabu 2010-11-14