2.2. Build and install the Mini SQL driver

First you have to unpack the libdbi-drivers archive in a suitable directory. Unpacking will create a new subdirectory libdbi-drivers-X.Y where "X.Y" denotes the version:

$ tar -xzf libdbi-drivers-x.y.tar.gz

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

$ cd libdbi-drivers
$ ./configure --with-msql

Run ./configure --help to find out about additional options.

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. The program will ask for a database name and a host name. If you havn't configured Mini SQL to use TCP just press enter at the hostname selection to pass NULL to Mini SQL's connect() function indicating that you want to use a local socket.