src/utils/installodbc.sh
sudo apt-get update
rm -rf /tmp/msodbcubuntu
mkdir /tmp/msodbcubuntu
sudo wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.1.tar.gz -P /tmp/msodbcubuntu/
cd /tmp/msodbcubuntu
sudo tar -xzf /tmp/msodbcubuntu/unixODBC-2.3.1.tar.gz 
cd /tmp/msodbcubuntu/unixODBC-2.3.1/ 
sudo apt-get --no-install-recommends install -y g++-5
echo "Configuring the unixODBC 2.3.1 Driver Manager"
./configure --disable-gui --disable-drivers --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE 1> odbc_con.log 2> moake_err.log
echo "Building and Installing the unixODBC 2.3.1 Driver Manager"
sudo make 1> make_std.log 2> moake_err.log
sudo make install 1> makeinstall_std.log 2> makeinstall_err.log

echo "Downloading the Microsoft ODBC Driver 13 for SQL Server- Ubuntu"
wget https://download.microsoft.com/download/2/E/5/2E58F097-805C-4AB8-9FC6-71288AB4409D/msodbcsql-13.0.0.0.tar.gz -P /tmp/msodbcubuntu
cd /tmp/msodbcubuntu/
tar xvfz /tmp/msodbcubuntu/msodbcsql-13.0.0.0.tar.gz
cd /tmp/msodbcubuntu/msodbcsql-13.0.0.0/
ldd /tmp/msodbcubuntu/msodbcsql-13.0.0.0/lib64/libmsodbcsql-13.0.so.0.0
echo "Installing Dependencies"
sudo apt-get --no-install-recommends install -y libssl1.0.0 
sudo apt-get --no-install-recommends install -y libgss3 
sudo ldconfig
echo "Installing the Microsoft ODBC Driver 13 for SQL Server- Ubuntu"
sudo bash ./install.sh install --force --accept-license
echo "Cleaning up"
# rm -rf /tmp/msodbcubuntu
