UnixODBC - Installation

Card Puncher Data Processing

About

How to install UnixODBC

Steps

Package Manager installation

Installation Verification

  • With rpm
rpm -q unixODBC
  • With yum:
yum list installed unixODBC

Manual Installation

The install uses the standard GNU autoconf process

Short story

  • Installation: as root:
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/
  • Verification odbc manager
odbc_config --prefix
/usr/local

isql --version
unixODBC 2.3.6

Long Story

Login as root

Only root can write to:

  • /usr/local
  • or /opt.

You need then to be logged as root.

Download the files

Download the file in a temporary directory and unzip them. See http://www.unixodbc.org/

gunzip unixODBC*.tar.gz 
tar xvf unixODBC*.tar
Configuration
Prefix - Installation Location

To change the default installation (/usr/local):

# For instance  to /usr/local/unixODBC
./configure --prefix=/usr/local/unixODBC
odbcinst file Location

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 
GUI (With or without)

If you do not require GUI components ( ODBCConfig and DataManager ) and/or have not Qt installed specify

./configure --enable-gui=no
Build
make
make install

Verification

Prefix

UnixODBC - odbc_config (UnixODBC environment)

odbc_config --prefix
/usr/local

Support

How to find the configuration of a previous installation

You can check the file

Documentation / Reference







Share this page:
Follow us:
Task Runner