Installing Bond2 and BondDB

First of all, a general knowledge of UNIX and SQL are necessary to develop applications with bond. Glade is also a helpful tool for creating GUI's for applications.

Bond is dependant on BondDB, PostgreSQL development libraries, GTK development libraries (GLib), and libxml2 (2.6 or later). Most of these packages you can get from your distribution. Under Debian the packages you're looking for are postgresql-dev, gtk1.2-dev and libxml2-dev. You need to compile and install BondDB before you can install Bond2.

Run ./configure in the BondDB directory to generate the needed make files. BondDB is included in the tar.gz for Bond2 for your convenience - usually it is identical to the version available on the BondDB site.

Type make to compile the source files and then type make install to install BondDB. You may need root privileges to do make install.

After installing BondDB, you can use the same process to install Bond2.

In the src directory is a application called dbtest in bonddb and testbond and testsoldier in bond. Use these test applications to check if the libraries work correctly. You need to import the test database and modify your bond.conf file.

createdb dbtest
psql -f createtestdb.sql dbtest
(in bonddb / directory)

Modify bond.conf in the src directory of both bond and bonddb. dbstring to connect to pgsql=dbname=dbtest host=localhost user=postgresusername

Start running the tests by specifying the test number to run on the command line, like ./dbtest 1. Most tests should say TEST PASSED, else TEST FAILED if something went wrong. The testsoldier is not a command line test, but an application you can. If you run it and lots of windows pop up with information in the widgets you know everything is working well.