sqlite3 driver manual: A libdbi driver using the SQLite3 embedded database engine | ||
---|---|---|
Prev | Chapter 2. Installation | Next |
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-0.7.2.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 sqlite3 driver (you can list as many drivers as you want to build):
$ cd libdbi-drivers |
$ ./configure --with-sqlite3 |
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. This can be any name that is a valid filename on your system. It will also ask for a data directory. This is the directory that is used to create the test database. Needless to say that you need write access to that directory. If you accept the default ".", the database will be created in the tests subdirectory.
Note: If for some reason you need to re-create the autoconf/automake-related files, try running ./autogen.sh. I've found out that the current stable autoconf/automake/libtool versions (as found in FreeBSD 4.7 and Debian 3.0) do not cooperate well, so I found it 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.