Last active
August 29, 2015 14:02
-
-
Save ndelitski/a5539c8cbaa1cec2b6a2 to your computer and use it in GitHub Desktop.
Install odbc drivers working properly with MS SQL Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
pwd=`pwd` | |
cd /usr/local/src | |
#install unixodbc | |
wget http://onefinepub.com/wp-content/uploads/2014/03/unixodbc_2.3.2-1_amd64.deb | |
dpkg -i unixodbc_2.3.2-1_amd64.deb | |
rm unixodbc_2.3.2-1_amd64.deb | |
#install msnodeodbc | |
msodbcsql="msodbcsql-11.0.2270.0" | |
wget http://download.microsoft.com/download/B/C/D/BCDD264C-7517-4B7D-8159-C99FC5535680/RedHat6/$msodbcsql.tar.gz | |
tar -zxvf $msodbcsql.tar.gz | |
apt-get install -y libkrb5-3 libc6 e2fsprogs aptitude | |
wget https://gist.githubusercontent.com/ndelitski/1bcc1877fc6840ec515a/raw/6cfa361836a19242984f5bae84698bda88ad60fc/install-msnodeodbc -O $msodbcsql/install.sh | |
cd $msodbcsql | |
bash install.sh install --accept-license --force | |
cd ../ | |
rm -rf $msodbcsql $msodbcsql.tar.gz | |
cd $pwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment