Ubuntu 24.04.03 Python solucion a error libmsodbcsql-17.6 file not found
Habilitando las consultas sql server en servidores ubuntu,
local todo funciona pero subiendo cambios al servidor nuevo ya no funcionan y tira este error:
"message":
-----------------------------------------
Para Solucionar error de ODBC SQL Server en ubuntu 24.04.3 ocupas instalar el ODBC Driver 18
Para los cual en ubuntu deberia de ejecutar este comando:
if ! [[ "18.04 20.04 22.04 24.04 24.10" == *"$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)"* ]];
then
echo "Ubuntu $(grep VERSION_ID /etc/os-release | cut -d '"' -f 2) is not currently supported.";
exit;
fi
# Download the package to configure the Microsoft repo
curl -sSL -O https://packages.microsoft.com/config/ubuntu/$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2)/packages-microsoft-prod.deb
# Install the package
sudo dpkg -i packages-microsoft-prod.deb
# Delete the file
rm packages-microsoft-prod.deb
# Install the driver
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
# optional: for bcp and sqlcmd
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18
echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
source ~/.bashrc
# optional: for unixODBC development headers
sudo apt-get install -y unixodbc-dev
-----------------------------------------
Ref: ODBC Driver Linux
Comentarios
Publicar un comentario