Requirements
<<<
Typical 'configure' Options Thread-Safe Client
>>>

22.1.7 Installing MyODBC from a Source Distribution on Unix
22.1 Support ODBC de MySQL
22 Pilotes MySQL
 Manuel de Référence MySQL 4.1 : Version Française

Requirements
->Typical 'configure' Options
Thread-Safe Client
Shared or Static Options
Enabling Debugging Information
Enabling the Documentation
Building and Compilation
Building Shared Libraries
Installing Driver Libraries
Testing MyODBC on Unix
Mac OS X Notes
HP-UX Notes
Notes pour AIX :

22.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:

  • 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' .

  • 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 Array , you can use the '--with-iodbc-includes=INCDIR' option to specify their location.

      The applies to libraries. If they are not in Array , 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 Array and Array , use the '--with-unixODBC-includes=INCDIR' and '--with-unixODBC-libs=LIBDIR' options.

  • 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

<< Typical 'configure' Options >>
Requirements Installing MyODBC from a Source Distribution on Unix Thread-Safe Client