致命错误:找不到“ ext / standard / php_smart_str.h”文件

时间:2019-03-06 13:52:11

标签: php macos cakephp pecl intl

我下载了MacOS Mojave,并在2012年中的Macbook Pro上进行了全新安装。使用命令行工具安装了XCode。使用PEARL,PECL和ICU的最新版本(63.1),可以使用本机Apache和PHP,以便以后使用Intl扩展。

但是,每次安装Intl的尝试都失败了。在进行干净安装之前,我在笔式驱动器上找到了一个intl.so并使用了ICU版本54,但这并不是使事情在开发环境中工作的最佳方法。

最后,由于无法找到php_smart_str.h文件,我陷入了无法完成Intl的PECL的困境。

我也重新安装了开发人员工具的头文件:

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

没有Homebrew是否有可能拥有一个开发环境?

当我在航站楼上奔跑时:

sudo pecl install intl

返回以下内容:

/private/tmp/pear/install/intl/intl_error.h:24:10: fatal error: 'ext/standard/php_smart_str.h' file not found

在创建libtool并运行后:make。

0 个答案:

没有答案