(mysql.info.gz) MyODBC Unix configure options
Info Catalog
(mysql.info.gz) MyODBC Unix requirements
(mysql.info.gz) MyODBC Unix source
(mysql.info.gz) MyODBC Unix thread-safe
23.1.7.2 Typical `configure' Options
....................................
The `configure' script gives you a great deal of control over how you
configure your MyODBC build. Typically you do this using options on the
`configure' command line. You can also affect `configure' using certain
environment variables. For a list of options and environment variables
supported by `configure', run this command:
shell> ./configure --help
Some of the more commonly used `configure' options are described here:
1. To compile MyODBC, you need to supply the MySQL client include and
library files path using the `--with-mysql-path=DIR' option, where
DIR is the directory where the MySQL is installed.
MySQL compile options can be determined by running
`DIR/bin/mysql_config'.
2. Supply the standard header and library files path for your ODBC
Driver Manager(`iodbc' or `unixobc').
* If you are using `iodbc' and `iodbc' is not installed in its
default location (`/usr/local'), you might have to use the
`--with-iodbc=DIR' option, where DIR is the directory where
iodbc is installed.
If the iodbc headers do not reside in `DIR/include', you can
use the `--with-iodbc-includes=INCDIR' option to specify
their location.
The applies to libraries. If they are not in `DIR/lib', you
can use the `--with-iodbc-libs=LIBDIR' option.
* If you are using `unixODBC', use the `--with-unixODBC=DIR'
option (case sensitive) to make `configure' look for
`unixODBC' instead of `iodbc' by default, DIR is the
directory where unixODBC is installed.
If the unixODBC headers and libraries aren't located in
`DIR/include' and `DIR/lib', use the
`--with-unixODBC-includes=INCDIR' and
`--with-unixODBC-libs=LIBDIR' options.
3. You might want to specify an installation prefix other than
`/usr/local'. For example, to install the MyODBC drivers in
`/usr/local/odbc/lib', use the `--prefix=/usr/local/odbc' option.
The final configuration command will look something like this:
shell> ./configure --prefix=/usr/local \
--with-iodbc=/usr/local \
--with-mysql-path=/usr/local/mysql
Info Catalog
(mysql.info.gz) MyODBC Unix requirements
(mysql.info.gz) MyODBC Unix source
(mysql.info.gz) MyODBC Unix thread-safe
automatically generated byinfo2html