From Linuxnetworks
Contents |
Linux
The necessary files for certain backends might be available at different locations in some distributions. Below are the ./configure calls for the major distributions if they differ from the default.
Debian/Ubuntu
CPPFLAGS="-I/usr/include/mysql" \ LDFLAGS="-L/usr/lib/mysql" \ ./configure --with-backends="mysql"
CPPFLAGS="-I/usr/include/postgresql" \ LDFLAGS="-L/usr/lib/postgresql" \ ./configure --with-backends="pgsql"
Fedora/RHEL
CPPFLAGS="-I/usr/include/mysql" \ LDFLAGS="-L/usr/lib/mysql" \ ./configure --with-backends="mysql"
Mandriva
CPPFLAGS="-I/usr/include/mysql" \ ./configure --with-backends="mysql"
CPPFLAGS="-I/usr/include/pgsql" \ ./configure --with-backends="pgsql"
SuSE
CPPFLAGS="-I/usr/include/mysql" \ LDFLAGS="-L/usr/lib/mysql" \ ./configure --with-backends="mysql"
CPPFLAGS="-I/usr/include/pgsql" \ ./configure --with-backends="pgsql"
Common
This section applies to all distributions and Unix-like systems.
Oracle
The location of the Oracle files isn't distribution specific but are placed in an arkward location by Oracle. The necessary preprocessor and library flags are:
CPPFLAGS="-I/usr/lib/oracle/xe/app/oracle/product/<version>/client/rdbms/public" \ LDFLAGS="-L/usr/lib/oracle/xe/app/oracle/product/<version>/client/lib" \ ./configure --with-backends="oracle"
Please replace <version> with the version of your installed Oracle package.

