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

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 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Difficulties installing mysql gem on Ubuntu(在 Ubuntu 上安装 mysql gem 的困难)
Default password of mysql in ubuntu server 16.04(ubuntu server 16.04 mysql的默认密码)
MySQL is extremely slow on EC2(MySQL 在 EC2 上非常慢)
preconfigure an empty password for mysql via debconf-set-selections(通过 debconf-set-selections 为 mysql 预配置一个空密码)
How can I pass a password from a bash script to aptitude for installing mysql?(如何将密码从 bash 脚本传递到 aptitude 以安装 mysql?)
How to edit the path in odbcinst -j(如何在odbcinst-j中编辑路径)