为 mariadb 10 Ubuntu 13.10 安装 mysqldb python 接口时找不到 mysql_config

在我安装 Mariadb 10 之后,Mysql 工作台和 JPDB 客户端都可以连接并正常工作,所以下一步是使用 Python(使用 SQLAlchemy)进行编程,这似乎需要 MySQL-python,所以我去更新它并得到:mysql_config not found"我在常见的地方"看了看,没有看到文件……

After I installed Mariadb 10 the Mysql workbench and JPDB client both connect and work fine so next step was get programming with Python (using SQLAlchemy) which seems to require MySQL-python so I went to update that and got: "mysql_config not found" I looked in the "usual places" and did not see a file...

所以我遵循了 关于 SO 的早期问题的一些想法并尝试安装:apt-get install libmysqlclient-dev

So I followed some ideas from an earlier question on SO and tried to install: apt-get install libmysqlclient-dev

这让我:以下包具有未满足的依赖项:libmysqlclient-dev :取决于:libmysqlclient18 (= 5.5.35-0ubuntu0.13.10.2) 但要安装 10.0.10+maria-1~saucy

which got me to: The following packages have unmet dependencies: libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.35-0ubuntu0.13.10.2) but 10.0.10+maria-1~saucy is to be installed

哪一种对我来说是一堵墙

which kind of hits a brick wall for me

推荐答案

找到了!情况是 mariadb 有一个兼容的包,如果你有 http://downloads.mariadb.org/中的 ppa 设置.只是

Found it! The case is that mariadb has a compatible package, if you have the ppa setup as in http://downloads.mariadb.org/. Just

sudo apt-get install libmariadbclient-dev

感谢 http://data-things.blogspot.com/2013/08/install-mysql-python-with-mariadb.html在此之后 mysql-python 正确安装

Thanks to http://data-matters.blogspot.com/2013/08/install-mysql-python-with-mariadb.html After this the mysql-python installs correctly

相关文章