grep: /usr/include/php/main/php.h: No such file or directory

macOS使用phpize安装扩展时报错。

$ phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:

缺少PHP的header头文件,再一看/usr/include文件夹根本不存在敲出如下命令

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

如果phpize还是无效、执行下列命令安装header头文件SDK即可

$ cd /Library/Developer/CommandLineTools/Packages/
$ open macOS_SDK_headers_for_macOS_10.14.pkg

原文地址:https://www.cnblogs.com/lantor/p/11644269.html

时间: 2024-10-10 19:38:16

grep: /usr/include/php/main/php.h: No such file or directory的相关文章

mac安装扩展出现grep: /usr/include/php/main/php.h

在Mac下执行 sudo phpize时提示: grep: /usr/include/php/main/php.h: No such file or directorygrep: /usr/include/php/Zend/zend_modules.h: No such file or directorygrep: /usr/include/php/Zend/zend_extensions.h: No such file or directory 解决方法: macOS系统在10.12版本之上要

/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory

cc -DDEBUG -mtune=core2 -O2 \ -onvideo nvideo.c \ -I/usr/include/atk-1.0 \ -I/usr/include/cairo \ -I/usr/include/gdk-pixbuf-2.0 \ -I/usr/include/glib-2.0 \ -I/usr/include/gtk-3.0 \ -I/usr/include/pango-1.0 \ -I/usr/include/libxml2 \ -I/usr/lib/x86_64

Visual Studio 2013: fatal error C1083: Cannot open include file: 'XXX.h': No such file or directory

So to do this in Visual Studio, open up Solution Explorer, right click on the main project's name and then select Properties. In the window that appears go to Configuration Properties->C/C++->General and in Additional Include Directories add the pat

mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

安装mysql-python之前, 请先安装setuptools. https://pypi.python.org/pypi/setuptools/7.0 下载mysql-python. 下载源码包. https://pypi.python.org/pypi/MySQL-python/1.2.5 解压后执行 python setup.py install 提示错误: fatal error C1083: Cannot open include file: 'config-win.h': No s

Cannot open include file: 'libxml/xpath.h': No such file or directory

在搭建scrapy爬虫框架时,通过pip安装lxml遇到了这个问题,我是用32位的windows搭建爬虫框架,python版本是2.7.12, 解决方案如下: 原因: 在网上各种找原因,有大神是说没安装libxml2-devel and libxslt-devel,和没有安装 libxml2和 libxslt文件.其实报错原因中也说明了没有安装好 libxml2 各种解决方案,但是找了很久,试了很多种方法,最终我就参考了 http://coding.derkeiler.com/Archive/P

win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

http://www.cnblogs.com/fnng/p/4115607.html http://www.crifan.com/python_install_module_mysql_mysqldb/comment-page-1/ ======================== 今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Cannot open

(转)win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

原文地址:http://www.cnblogs.com/fnng/p/4115607.html 作者:虫师 今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch file or directory error: command '"C:\Users\fnng

生成JNI的DLL时提示找不到jni.h的解决办法Cannot open include file: 'jni.h': No such file or directory

解决办法: 就是到jdk的安装目录下include下把以下相应的文件,复制到vc目录下的include文件夹下 \jdk\include\jni.h \jdk\include\win32\jawt_md.h \jdk\include\win32\jni_md.h 上面主是jdk安装目录下的三个文件,分别复制它们到vc目录下的include文件夹下.如我的安装位置是: D:\Program Files\Microsoft Visual Studio\VC98\Include 你们可以根据自己的安装

安装MySQLdb模块遭遇"fatal error: my_config.h: No such file or directory"的处理

Issue       I encountered an error when I run the python script which need to import the module of "MySQLdb".The error shows like this: [[email protected] script]# python Xtrabackup.py Traceback (most recent call last): File "backup.py"