0

I am following this blog to install Microsoft ODBC driver for SQL Server (Linux). The only change I did is I changed the version of msodbcsql to msodbsql17 as the previous version doesn't seem to work for me. So I do ACCEPT_EULA=Y yum -y install msodbcsql17 instead of ACCEPT_EULA=Y yum -y install msodbcsql

I get below error when I run this.

Error: Package: msodbcsql17-17.5.2.1-1.x86_64 (packages-microsoft-com-prod)
           Requires: unixODBC >= 2.3.1
           Available: unixODBC-2.2.14-14.7.amzn1.i686 (amzn-main)
               unixODBC = 2.2.14-14.7.amzn1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

It's strange because in the previous step I installed unixODBC-2.3.5 using below set of commands.

curl ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.5.tar.gz -O
tar xvzf unixODBC-2.3.5.tar.gz
cd unixODBC-2.3.5
./configure  --sysconfdir=/var/task  --disable-gui --disable-drivers --enable-iconv --with-iconv-char-enc=UTF8 --with-iconv-ucode-enc=UTF16LE --prefix=/home
make install
cd ..
mv /home/* .
mv unixODBC-2.3.5 unixODBC-2.3.5.tar.gz /tmp/

How shoudld I resolve this ?

Python version= 3.7, container image=lambdaci-python 3.7

Naxi
  • 758
  • 11
  • 29

0 Answers0