在CentOS 7上找不到mysql-community的mysql_config [英] mysql_config not found with mysql-community on CentOS 7

查看:409
本文介绍了在CentOS 7上找不到mysql-community的mysql_config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过pip在我的CentOS服务器上为python3.6安装mysqlclient模块.
安装中断,并出现以下错误:OSError: mysql_config not found.
我找到了一个解决方案,可以安装mysql-devel软件包,但不幸的是,它因以下错误而中断:

I need to install mysqlclient module for python3.6 on my CentOS server via pip.
The instalation breaks with following error: OSError: mysql_config not found.
I've found a solution, to install mysql-devel package, but unfortunately it breaks with following error:

Error: mariadb101u-config conflicts with mysql-community-server-8.0.4-0.1.rc.el7.x86_64
Error: mariadb101u-libs conflicts with mysql-community-libs-8.0.4-0.1.rc.el7.x86_64
Error: mariadb101u-libs conflicts with mysql-community-libs-compat-8.0.4-0.1.rc.el7.x86_64
Error: mariadb101u-common conflicts with mysql-community-common-8.0.4-0.1.rc.el7.x86_64

我无法删除mysql-community软件包,因为服务器正在基于该软件包运行MySQL数据库.
有什么办法可以解决而又不会删除有冲突的数据包?

I cannot remove the mysql-community packages, because the server is running MySQL database based on that.
Is there any way to fix it without removing conflicting packets?

推荐答案

好,找到答案:

yum install mariadb-devel gcc python36u-devel

这篇关于在CentOS 7上找不到mysql-community的mysql_config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆