src/libraries/System.Data.Odbc/src/DatabaseSetupInstructions.md
docker ps shows _id of existing Fedora 24 containerdocker exec -it _id /bin/shdnf install findutils need to install findutils for building libraries to add missing xargsfind / -name libsqlite3odbc.so to be used in odbcinst.iniodbcinst -j to show version and location of ini filesldconfig -p | grep sqliteldconfig -p | grep odbcdnf list | grep unixODBCdnf install unixODBC.x86_64dnf install unixODBC-devel.x86_64dnf install sqliteodbc.x86_64Get the tag name from https://mcr.microsoft.com/v2/dotnet-buildtools/prereqs/tags/list and use in docker run below
docker run -it mcr.microsoft.com/dotnet-buildtools/prereqs:debian-8.2-SHA-YMD.. /bin/shdocker images shows _id for Debian 8.2 to use in command belowdocker exec -it _id /bin/shThis section describes the process to install unixODBC libraries and SQLite/MSSQL driver for Ubuntu 14.04.
sudo sucurl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list > /etc/apt/sources.list.d/mssql-release.listsudo apt-get updatesudo apt-get install unixodbcSQLite Driver
wget "http://www.ch-werner.de/sqliteodbc/sqliteodbc-0.9995.tar.gz" download and install SQLite ODBC Drivergunzip sqliteodbc-0.9995.tar.gztar xvf sqliteodbc-0.9995.tarcd sqliteodbc-0.9995/./configuremakesudo make installsudo nano /etc/odbcinst.ini[SQLite3 ODBC Driver]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
Threading=4
Microsoft SQL Driver
sudo ACCEPT_EULA=Y apt-get install msodbcsql17sudo nano /etc/odbcinst.ini[ODBC Driver 17 for SQL Server]
Description=Microsoft ODBC Driver 17 for SQL Server
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.2.so.0.1
UsageCount=1
To use the Microsoft driver, here is sample odbc.ini
[SQLTest]
Driver=ODBC Driver 17 for SQL Server
Server=tcp:server,port
Database=
wget "ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.4.tar.gz" download and install unixODBCgunzip unixODBC-2.3.4.tar.gztar xvf unixODBC-2.3.4.tarcd unixODBC-2.3.4/./configuremakesudo make installcd ..wget "http://www.ch-werner.de/sqliteodbc/sqliteodbc-0.9995.tar.gz" download and install SQLite ODBC Drivergunzip sqliteodbc-0.9995.tar.gztar xvf sqliteodbc-0.9995.tarcd sqliteodbc-0.9995/./configuremakesudo make installsudo nano /usr/local/etc/odbcinst.ini[ODBC Drivers]
SQLite3 ODBC Driver=Installed
[SQLite3 ODBC Driver]
Description=SQLite3 ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
sudo nano /etc/odbcinst.ini[SQLite3 ODBC Driver]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
Threading=4
gunzip unixODBC-2.3.4.tar.gz download unixodbctar xvf unixODBC-2.3.4.tarcd unix..../configuremakemake install/usr/local/bin/odbcinst try out odbcinst using the command belowsudo nano /etc/odbcinst.ini [SQLite3 ODBC Driver]
Description=SQLite ODBC Driver
Driver=/usr/local/lib/libsqlite3odbc.so
Setup=/usr/local/lib/libsqlite3odbc.so
Threading=4
sudo nano find / -name odbcinst.inisudo nano /usr/local/etc/odbcinst.ini [ODBC Drivers]
SQLite3 ODBC Driver=Installed
[SQLite3 ODBC Driver]
Driver=/usr/local/lib/libsqlite3odbc.dylib
Setup=/usr/local/lib/libsqlite3odbc.dylib