更新到MacOS Mojave后无法使用PHPIZE [英] Unable to use PHPIZE after update to MacOS Mojave

查看:166
本文介绍了更新到MacOS Mojave后无法使用PHPIZE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行PHPIZE并出现以下错误时该怎么办?我已经安装了xcode命令行工具.

What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools.

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:

推荐答案

潜在的更好解决方案-强制重新安装头文件.解决了整个系统中的大量问题.

Potential better solution - force reinstall the header files. Fixed a ton of problems for me system wide.

运行以下命令将重新安装开发人员工具头文件,并应解决此问题.

Running the following command will reinstall the developer tools header files and should fix the issue.

$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

这篇关于更新到MacOS Mojave后无法使用PHPIZE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆