mysql_config not found with mysql-community on CentOS 7

一曲冷凌霜 提交于 2019-12-12 19:13:54

问题


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

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?


回答1:


Ok, found an answer:

yum install mariadb-devel gcc python36u-devel



回答2:


Solution by @Djent worked for me.

But I kept on receiving time out error while installing through yum. If you are having the same problem. You can manually download the package and install it! On CentOS

wget http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.38-centos73-x86_64-devel.rpm
rpm -i MariaDB-10.1.38-centos73-x86_64-devel.rpm

For other linux OS, you can find mariadb-devel at https://pkgs.org/download/mariadb-devel



来源:https://stackoverflow.com/questions/49666481/mysql-config-not-found-with-mysql-community-on-centos-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!