Centos7 installing Mysql-python times wrong environmenterror:mysql_config not found

Source: Internet
Author: User

Install Mysql-python

and then error.

Environmenterror:mysql_config not found

Online search solution, need to install Mysql-devel

And then

Yum Install Mysql-devel

Can not be installed, the error content is probably related to the MySQL version of the problem

Workaround

Download yourself and match your MySQL version to Mysql-devel

1. See what versions of MySQL and related packages are installed

grep MySQL

Mysql-community-client-5.6.34-2.el7.x86_64
Mysql-community-server-5.6.34-2.el7.x86_64
Mysql-community-release-el7-5.noarch
Mysql-community-common-5.6.34-2.el7.x86_64
Mysql-community-libs-5.6.34-2.el7.x86_64

Found my is the community version of the 5.6, under a lot of non-community version of Mysql-devel, has failed

2. Download the corresponding version of Mysql-devel

Mysql-community-devel

Can be searched from this URL to get http://rpm.pbone.net/

wget ftp://mirror.switch.ch/pool/4/mirror/mysql/Downloads/MySQL-5.6/ mysql-community-devel-5.6.38-2.sles12.x86_64.rpm
RPM-IVH mysql-community-devel-5.6. 2. sles12.x86_64.rpm

3. Installing Mysql-python

Install Mysql-python

And then it's OK.

Centos7 installing Mysql-python times wrong environmenterror:mysql_config not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.