_mysql.c:44:10: fatal error: 'my_config.h' file not found
2016-09-29 00:12
651 查看
错误信息_mysql.c:44:10:
fatal error: 'my_config.h' file not found 这句话告诉我们找不到头文件
原因是因为我的MySQL不是单独安装的,是安装的一个MAMP集成开发环境包,在MAMP中PHP和MySQL的头文件都是没有的,所以会报出这个错误。我们有两种解决方式,一种是重新编译MySQL,一种是单独安装mysq-connector-c,因为开发环境包已经自带了MySQL了,我们就不再编译安装了,单独安装就ok。
Mac执行以下语句即可:
brew install mysql-connector-c
fatal error: 'my_config.h' file not found 这句话告诉我们找不到头文件
原因是因为我的MySQL不是单独安装的,是安装的一个MAMP集成开发环境包,在MAMP中PHP和MySQL的头文件都是没有的,所以会报出这个错误。我们有两种解决方式,一种是重新编译MySQL,一种是单独安装mysq-connector-c,因为开发环境包已经自带了MySQL了,我们就不再编译安装了,单独安装就ok。
Mac执行以下语句即可:
brew install mysql-connector-c
相关文章推荐
- mac编译openssl扩展报错 openssl.c:44:10: fatal error: 'openssl/evp.h' file not found
- mac安装protobuf2.4.1时报错./include/gtest/internal/gtest-port.h:428:10: fatal error: 'tr1/tuple' file not found和google/protobuf/message.cc:175:16: error: implicit instantiation of undefined template
- mac /include/c++/v1/iterator:341:10: fatal error: '__debug' file not found #include <__debug>
- Install libevent bufferevent_openssl.c:60:10: fatal error: 'openssl/bio.h' file not found
- MySQL报错: Found option without preceding group in config file:XXX; Fatal error in defaults handling.
- mac配置libevet出现bufferevent_openssl.c:66:10: fatal error: 'openssl/bio.h' file not found
- linux安装mysql 报 ERROR! MySQL manager or server PID file could not be found!
- ./mosquitto_internal.h:51:12: fatal error: 'ares.h' file not found
- ERROR! MySQL server PID file could not be found!的解决方法
- mysql启动时报错--ERROR! MySQL server PID file could not be found!
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- 关于 Fatal error: ‘SpringBoard/SpringBoard.h’ file not found
- python安装软件出现错误 fatal error: 'libxml/xmlversion.h' file not found
- ERROR! MySQL is running but PID file could not be found
- Configuration file tmeplate mysql\my-template.ini could not be processed and written to Error code-1
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- ERROR! MySQL is running but PID file could not be found ?
- MySQL启动错误ERROR! MySQL server PID file could not be found的解决办法
- fatal error: 'XCTest/XCTest.h' file not found