尝试在macOS High Sierra上安装MySQL ODBC连接器时安装失败

时间:2017-11-24 10:14:24

标签: odbc pyodbc unixodbc macos-high-sierra mysql-odbc-connector

我正在尝试在我的macOS High Sierra机器上安装this mysql odbc connector,但是我收到此错误: enter image description here

我尝试使用installer进行安装,以期获取有关错误的信息:

➜  ~ sudo installer -pkg Desktop/mysql-connector-odbc-5.3.9-macos10.12-x86-64bit.pkg -target / -verbose
installer: Package name is MySQL Connector/Odbc 5.3.9
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing MySQL Connector/Odbc 5.3.9….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

但这没有用。您有关于我如何调试并安装连接器的任何提示吗?感谢。

2 个答案:

答案 0 :(得分:8)

我刚注意到这一点: enter image description here 在此页面上:https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-osx.html

安装iODBC(http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads)后,就可以安装连接器了。

答案 1 :(得分:0)

我知道我正在恢复一个旧线程,但是刚刚遇到了这个确切的问题/问题,并且没有解决iodbc安装问题,我想我应该发布对我有用的解决方案。使用命令行...打开终端并运行...

pip install mysql-connector-python

pip install mysql-connector