mysql_config not found when installing mysqldb python interface for mariadb 10 Ubuntu 13.10(为 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
这篇关于为 mariadb 10 Ubuntu 13.10 安装 mysqldb python 接口时找不到 mysql_config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为 mariadb 10 Ubuntu 13.10 安装 mysqldb python 接口时找不到 mysql_config
基础教程推荐
- ERROR 2006 (HY000): MySQL 服务器已经消失 2021-01-01
- 如何在 SQL Server 的嵌套过程中处理事务? 2021-01-01
- 在 VB.NET 中更新 SQL Server DateTime 列 2021-01-01
- Sql Server 字符串到日期的转换 2021-01-01
- SQL Server:只有 GROUP BY 中的最后一个条目 2021-01-01
- 使用pyodbc“不安全"的Python多处理和数据库访问? 2022-01-01
- 无法在 ubuntu 中启动 mysql 服务器 2021-01-01
- SQL Server 2016更改对象所有者 2022-01-01
- SQL Server 中单行 MERGE/upsert 的语法 2021-01-01
- 将数据从 MS SQL 迁移到 PostgreSQL? 2022-01-01