FirebirdSQL logo

Installing the Driver on Linux

Pavel Cisar

There are two prerequisites for installing the ODBC/JDBC driver on Linux:

  • The “unixODBC” package must be installed

  • Firebird must be installed, initially at least, for testing the installation

Unpacking the Files

The ODBC/JDBC driver packages for Linux are gzipped tar files.After gunzip they should be processed by tar, or you can rename them to .tar.gz and use a tool such as Midnight Commander to unpack them.

docnext count = 2

Building from Sources

Building from source code (recommended), requires the development package for unixODBC.Proceed with the following steps:

  1. Download and unpack the Firebird driver sources

  2. Rename makefile.linux in .source/Builds/Gcc.lin to makefile

  3. Set the evironment variables FBINCDIR (Firebird include directory) and FBLIBDIR (Firebird lib directory) if necessary.

  4. Run make which will create the library libOdbcFb.so in a subdirectory

  5. It is possible to copy the library to /usr/local/lib64 or any preferred directory;or run make install to symlink the library from the unixODBC directory

Installing the Binary Package

To install from the binary package, copy libOdbcFb.so to /usr/local/lib64, /usr/local/lib32 or any other desired destination directory, as appropriate.