READ THE IF_YOU_LIKE_THIS DOCUMENT!

1.) install postgresql > 7.4.x as Source and put pgchem/ under the contrib/ directory
2.) Only if you do not want to use barsoi: install checkmol/matchmol somwehere in the PATH of the POSTGRES user!!! 
3.) edit Makefile to reflect your include paths for openbabel

With Openbabel2 the build process has become quite complicated.  On x86_32 all needed Openbabel parts are now linked into libpgchem.dll/.so, so we recommend, that you use the binary distributions, if possible and continue with step 6!!! For x86_64 you also need libinchi.so and libopenbabel.so.

4.) edit pgchem_config.h if necessary
5.) make
6.) copy or link libpgchem.dll/.so into the postgresql lib/ directory
7.) create a database. You can name it as you like, but if you want to try the examples, name it 'mol' for convenience. All follwing steps must be executed on that database you've just created
8.) install the plpgsql language into the database
9.) execute functions.sql, trigger_functions.sql as postgresql superuser (usually 'postgres')
10.) if SELECT pgchem_version() produces something like 'pgchem...UNIX' or 'pgchem...WIN32' you're almost there :-)
11.) Refer to the User's Guide how to design a database Schema for pgchem::tigress (and look at the Examples!)
12.) If you want to use Barsoi: cd to the barsoi subdirectory, make, copy or link libbarsoi.dll/.so into the postgresql lib/ directory
13.) If you update an older version. See CHANGES and update your tables/functions accordingly, otherwise it WILL FAIL!

READ THE IF_YOU_LIKE_THIS DOCUMENT!
