How to install UnixODBC
Installation Verification
rpm -q unixODBC
yum list installed unixODBC
The install uses the standard GNU autoconf process
cd /tmp
wget http://www.unixodbc.org/unixODBC-2.3.6.tar.gz
tar xvf unixODBC-2.3.6.tar.gz
cd unixODBC-2.3.6/
. ./configure
make
make install
export LD_LIBRARY_PATH=/usr/local/lib/
odbc_config --prefix
/usr/local
isql --version
unixODBC 2.3.6
Only root can write to:
You need then to be logged as root.
Download the file in a temporary directory and unzip them. See http://www.unixodbc.org/
gunzip unixODBC*.tar.gz
tar xvf unixODBC*.tar
To change the default installation (/usr/local):
# For instance to /usr/local/unixODBC
./configure --prefix=/usr/local/unixODBC
The odbcinst file is now installed by default in {prefix}/etc (GNU guidelines).
To install the files in the old default /etc
./configure --sysconfdir=/etc
If you do not require GUI components ( ODBCConfig and DataManager ) and/or have not Qt installed specify
./configure --enable-gui=no
make
make install
UnixODBC - odbc_config (UnixODBC environment)
odbc_config --prefix
/usr/local
You can check the file