iodbc-config command not found

In this troubleshooting guide we learn how to fix iodbc-config command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

iodbc-config: command not found

or when using sudo you get the following error message

sudo: iodbc-config: command not found

Solutions to iodbc-config: command not found

How To Fix iodbc-config: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu iodbc-config is provided by libiodbc2-dev package.

libiodbc2-dev is:

The iODBC (intrinsic Open Database Connectivity) driver manager is compatible with the ODBC 2.x and 3.x specification and performs all the jobs of a ODBC driver manager (i.e. driver loading, parameters and function sequence checking, driver’s function invoking, etc). Any ODBC driver working with ODBC 2.0 and 3.x driver manager will also work with iODBC driver manager and vice versa.

Applications (using ODBC function calls) linked with iODBC driver manager will be able to simultaneously access different types of data sources within one process through suitable iODBC drivers.

This package contains the development files.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libiodbc2-dev

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libiodbc2-dev.

sudo apt -y install libiodbc2-dev

Or if you have aptitude installed you can use the following command.

sudo aptitude install libiodbc2-dev

Summary

In this tutorial we learn how to fix iodbc-config command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.