What to do if the mysql.h file cannot be found under centos

王林
Release: 2020-05-23 10:40:28
Original
2393 people have browsed it

What to do if the mysql.h file cannot be found under centos

Problem description:

c The program accesses mysql and reports an error, indicating that the mysql.h file cannot be found.

Solution:

Although mysql-libs has been installed, you still need to install the mysql development package.

yum install mysql-devel
Copy after login

The error is reported because the packages used by PHP to access mysql conflict with those already installed in the system. Follow the prompts to execute the following command to skip these packages:

yum --skip-broken install mysql-devel
Copy after login
locate mysql.h
Copy after login

You can find it after completing the above operations.

Recommended tutorial: centos tutorial

The above is the detailed content of What to do if the mysql.h file cannot be found under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!