首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
mac m1 执行pecl install swoole 报错
### 问题描述 ```bash pecl install --configureoptions 'enable-openssl="yes" enable-http2="yes" enable-swoole-json="no" enable-swoole-curl="yes" ' swoole ``` 报错 ```shell configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details ERROR: `/private/tmp/pear/temp/swoole/configure --with-php-config=/Applications/MAMP/bin/php/php7.4.12/bin/php-config --enable-sockets=no --enable-openssl=yes --enable-http2=yes --enable-mysqlnd=no --enable-swoole-json=no --enable-swoole-curl=yes' failed ``` ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 安装版本为4.8 php版本为 7.4.12 操作系统为 mac m1
发布于4年前 · 30 次浏览 · 来自
提问
码农先生
### 问题描述 ```bash pecl install --configureoptions 'enable-openssl="yes" enable-http2="yes" enable-swoole-json="no" enable-swoole-curl="yes" ' swoole ``` 报错 ```shell configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details ERROR: `/private/tmp/pear/temp/swoole/configure --with-php-config=/Applications/MAMP/bin/php/php7.4.12/bin/php-config --enable-sockets=no --enable-openssl=yes --enable-http2=yes --enable-mysqlnd=no --enable-swoole-json=no --enable-swoole-curl=yes' failed ``` ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 安装版本为4.8 php版本为 7.4.12 操作系统为 mac m1
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2021-10-26
Twosee
试一试 `xcode-select --install`
赞
0
回复
2021-10-26
码农先生
回复
Twosee
xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates 这个最早之前在电脑上执行过
赞
0
回复
2021-10-29
Rango
`See 'config.log' for more details` 需要看`config.log`中的信息
赞
0
回复
2021-12-07
php抛光打蜡
我也是m1版本的mac,请问这个问题您解决了吗
赞
0
回复