11

解决 Linux 下 SQL Server ODBC Driver 17 找不到lib问题

 3 years ago
source link: https://azhuge233.com/%e8%a7%a3%e5%86%b3-linux-%e4%b8%8b-sql-server-odbc-driver-17-%e6%89%be%e4%b8%8d%e5%88%b0lib%e9%97%ae%e9%a2%98/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

解决 Linux 下 SQL Server ODBC Driver 17 找不到lib问题

  • Ubuntu 16.04
  • SQL Server 2017

在新服务器部署SQL Server后使用SQLcmd测试环境,执行指令

sqlcmd -S localhost -U SA -P [password]
sqlcmd -S localhost -U SA -P [password]

后报错,如下:

Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Can't open lib '/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.3.so.1.1' : file not found.
Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Can't open lib '/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.3.so.1.1' : file not found.

执行如下指令,升级libstdc++6

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6

相关

所有错误解决

发表评论 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

评论

显示名称 *

电子邮箱地址 *

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据


Recommend

  • 9
    • blog.fens.me 4 years ago
    • Cache

    打通Linux上的ODBC

    R的极客理想系列文章,涵盖了R的思想,使用,工具,创新等的一系列要点,以我个人的学习和体验去诠释R的强大。 R语言作为统计学一门语言,一直在小众领域闪耀着光芒。直到大数据的爆发,R语言变成了一门炙手可热的数据分析的利...

  • 8

    Calling A Database Stored Proc Via ODBC From Elixir This took me a while to figure out so I’m hoping that by posting this, it’ll save others some work. I’ve got a legacy system that I’m working with; one of the initiatives I’ve be...

  • 8
    • zhiqiang.org 4 years ago
    • Cache

    用脚本添加 ODBC 数据源

    用脚本添加 ODBC 数据源 作者: 张志强 , 发表...

  • 9
    • zhiqiang.org 4 years ago
    • Cache

    配置 ubuntu odbc 和 pypyodbc

    1. 安装分为三步 一定要先座这一几步,否则直接用pypyodbc会爆下面错误: pypyodbc.DatabaseError: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'FreeTDS' : file not found") 1.1. 第...

  • 8

    ODBC Driver 17.8 for SQL Server Released ODBC Driver 17.8 for SQL Server Released ...

  • 136

    ODBC 與 OLEDB 之 SQL Server TLS 1.2 支援問題-黑暗執行緒 兩年多前 整理過 Windows 停用 TLS 1.0 之配套作業,再補上 ODBC 與 OLEDB 處理經驗。 停用 SQL Server 主機 T...

  • 10

    Consuming CDS View Entities Using ODBC-Based Client Tools本文介绍通过基于 ODBC...

  • 1
    • panda843.github.io 2 years ago
    • Cache

    Linux安装ODBC_MYSQL连接

    Linux安装ODBC_MYSQL连接 | 是潘达呀Linux安装ODBC_MYSQL连接 发表于 2017-12-27 | 分类于 运维 | | 浏览 次 | 字数统计: 482 | 阅读时长 ≈ 1ODBC连接器是一个数据库...

  • 7

    Debian11系统MySQL Connector/ODBC下载及安装 ...

  • 7
    • owenyk.github.io 2 years ago
    • Cache

    Debian11用Python和ODBC操作ACCESS

    安装系统支持包:安装驱动程序管理器unixODBC或IODBC这里以编译安装unixODBC为例。下载并编译安装最新版本unixODBC-2.3.9

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK