Last active
September 23, 2024 09:05
-
-
Save id/476844f8bf1f328088eae08bca8c0cb1 to your computer and use it in GitHub Desktop.
install-snowflake-odbc.sh
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
#!/usr/bin/env bash | |
set -xeuo pipefail | |
apt update && apt install -yyq unixodbc-dev odbcinst wget unixodbc libreadline8 | |
wget -nc 'https://sfc-repo.snowflakecomputing.com/odbc/linux/3.3.2/snowflake-odbc-3.3.2.x86_64.deb' | |
apt install -y ./snowflake-odbc-3.3.2.x86_64.deb | |
ODBC_INST_LIB=/usr/lib/x86_64-linux-gnu/libodbcinst.so | |
sed -i -e "s#^ODBCInstLib=.*#ODBCInstLib=$ODBC_INST_LIB#" /usr/lib/snowflake/odbc/lib/simba.snowflake.ini | |
cat >>/etc/odbc.ini <<EOF | |
[ODBC Data Sources] | |
snowflake = SnowflakeDSIIDriver | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment