2.2. Build and install the driver

First you have to unpack the libdbi-drivers archive in a suitable directory. Unpacking will create a new subdirectory with the version number, such as libdbi-drivers-0.8.0

$ tar xfvz libdbi-drivers-0.8.0.tar.gz

The libdbi-drivers project consists of several drivers that use a common build system. Therefore you must explicitly tell the configuration script that you want to build the ingres driver (you can list as many drivers as you want to build):

$ cd libdbi-drivers-0.8.0
$ ./configure --with-ingres

Run ./configure --help to find out about additional options and other available drivers.

Then build the driver with the command:

$ make

Note: Please note that you may have to invoke gmake, the GNU version of make, on some systems.

Then install the driver with the command (you'll need root permissions to do this):

$ make install

To test the operation of the newly installed driver, use the command:

$ make check

This command creates and runs a test program that performs a few basic input and output tests.

Note: If for some reason you need to re-create the autoconf/automake-related files, try running ./autogen.sh. In some situations, the current stable autoconf/automake/libtool versions (as found in FreeBSD 4.7 and Debian 3.0) do not cooperate well, so it may be necessary to run the older autoconf 2.13. If necessary, edit autogen.sh so that it will catch the older autoconf version on your system.