首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
mac m1 执行make && make install 报错
### 问题描述 执行phpize的时候报错 ### Swoole版本,PHP版本,以及操作系统版本信息 系统是mac m1 ``` gcc Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/Users/boss/gcc/local/bin/../libexec/gcc/aarch64-apple-darwin20/11.0.0/lto-wrapper Target: aarch64-apple-darwin20 Configured with: ../gcc-darwin-arm64-master-wip-apple-si/configure --enable-languages=c++,fortran --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --build=aarch64-apple-darwin20 --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20201128 (experimental) (GCC) ``` swoole 版本 v4.6.7 ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) /Applications/MAMP/bin/php/php7.3.24/include/php/Zend/zend_operators.h:113:18: error: use of undeclared identifier 'finite'; did you mean 'isfinite'? if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { ^ /Applications/MAMP/bin/php/php7.3.24/include/php/main/php_config.h:2653:24: note: expanded from macro 'zend_finite' #define zend_finite(a) finite(a) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:439:1: note: 'isfinite' declared here isfinite(_A1 __lcpp_x) _NOEXCEPT ^ In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole.cc:16: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_cxx.h:19: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_private.h:25: In file included from ./php_swoole.h:20: In file included from /Applications/MAMP/bin/php/php7.3.24/include/php/main/php.h:33: In file included from /Applications/MAMP/bin/php/php7.3.24/include/php/Zend/zend.h:335: /Applications/MAMP/bin/php/php7.3.24/include/php/Zend/zend_operators.h:124:18: error: use of undeclared identifier 'finite'; did you mean 'isfinite'? if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { ^ /Applications/MAMP/bin/php/php7.3.24/include/php/main/php_config.h:2653:24: note: expanded from macro 'zend_finite' #define zend_finite(a) finite(a) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:439:1: note: 'isfinite' declared here isfinite(_A1 __lcpp_x) _NOEXCEPT ^ In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole.cc:16: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_cxx.h:20: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_coroutine.h:22: In file included from /Users/boss/bxycode/php/swoole-src/include/swoole_coroutine.h:22: In file included from /Users/boss/bxycode/php/swoole-src/include/swoole_socket.h:34: /Users/boss/bxycode/php/swoole-src/include/swoole_ssl.h:27:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^~~~~~~~~~~~~~~ 3 errors generated. make: *** [ext-src/php_swoole.lo] Error 1 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于5年前 · 15 次浏览 · 来自
提问
码农先生
### 问题描述 执行phpize的时候报错 ### Swoole版本,PHP版本,以及操作系统版本信息 系统是mac m1 ``` gcc Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/Users/boss/gcc/local/bin/../libexec/gcc/aarch64-apple-darwin20/11.0.0/lto-wrapper Target: aarch64-apple-darwin20 Configured with: ../gcc-darwin-arm64-master-wip-apple-si/configure --enable-languages=c++,fortran --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk --build=aarch64-apple-darwin20 --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20201128 (experimental) (GCC) ``` swoole 版本 v4.6.7 ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) /Applications/MAMP/bin/php/php7.3.24/include/php/Zend/zend_operators.h:113:18: error: use of undeclared identifier 'finite'; did you mean 'isfinite'? if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { ^ /Applications/MAMP/bin/php/php7.3.24/include/php/main/php_config.h:2653:24: note: expanded from macro 'zend_finite' #define zend_finite(a) finite(a) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:439:1: note: 'isfinite' declared here isfinite(_A1 __lcpp_x) _NOEXCEPT ^ In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole.cc:16: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_cxx.h:19: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_private.h:25: In file included from ./php_swoole.h:20: In file included from /Applications/MAMP/bin/php/php7.3.24/include/php/main/php.h:33: In file included from /Applications/MAMP/bin/php/php7.3.24/include/php/Zend/zend.h:335: /Applications/MAMP/bin/php/php7.3.24/include/php/Zend/zend_operators.h:124:18: error: use of undeclared identifier 'finite'; did you mean 'isfinite'? if (UNEXPECTED(!zend_finite(d)) || UNEXPECTED(zend_isnan(d))) { ^ /Applications/MAMP/bin/php/php7.3.24/include/php/main/php_config.h:2653:24: note: expanded from macro 'zend_finite' #define zend_finite(a) finite(a) ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/math.h:439:1: note: 'isfinite' declared here isfinite(_A1 __lcpp_x) _NOEXCEPT ^ In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole.cc:16: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_cxx.h:20: In file included from /Users/boss/bxycode/php/swoole-src/ext-src/php_swoole_coroutine.h:22: In file included from /Users/boss/bxycode/php/swoole-src/include/swoole_coroutine.h:22: In file included from /Users/boss/bxycode/php/swoole-src/include/swoole_socket.h:34: /Users/boss/bxycode/php/swoole-src/include/swoole_ssl.h:27:10: fatal error: 'openssl/ssl.h' file not found #include <openssl/ssl.h> ^~~~~~~~~~~~~~~ 3 errors generated. make: *** [ext-src/php_swoole.lo] Error 1 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2021-06-22
鲁飞
https://wiki.swoole.com/#/question/install?id=fatal-error-39opensslsslh39-file-not-found
赞
0
回复
2021-06-23
码农先生
现在报这个错误了
赞
0
回复