首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
mac-pro 编译安装swoole扩展报错
### 问题描述 执行 make && sudo make install 时报错 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole :master 3aa03bb9b [clang-format] Code format php 7.2.10 MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)系统版本 10.14.6 ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) ``` ### 你期待的结果是什么?实际看到的错误信息又是什么? /bin/sh /Users/lixiaowei/swoole-src/libtool --mode=compile g++ -I. -I/Users/lixiaowei/swoole-src -DPHP_ATOM_INC -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/main -I/Users/lixiaowei/swoole-src -I/Applications/MAMP/bin/php/php7.2.10/include/php -I/Applications/MAMP/bin/php/php7.2.10/include/php/main -I/Applications/MAMP/bin/php/php7.2.10/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.10/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext/date/lib -I/Users/lixiaowei/swoole-src -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/lixiaowei/swoole-src/php_swoole.cc -o php_swoole.lo g++ -I. -I/Users/lixiaowei/swoole-src -DPHP_ATOM_INC -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/main -I/Users/lixiaowei/swoole-src -I/Applications/MAMP/bin/php/php7.2.10/include/php -I/Applications/MAMP/bin/php/php7.2.10/include/php/main -I/Applications/MAMP/bin/php/php7.2.10/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.10/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext/date/lib -I/Users/lixiaowei/swoole-src -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/lixiaowei/swoole-src/php_swoole.cc -fno-common -DPIC -o .libs/php_swoole.o In file included from /Users/lixiaowei/swoole-src/php_swoole.cc:16: In file included from ./php_swoole_cxx.h:19: In file included from ./php_swoole.h:53: In file included from /Users/lixiaowei/swoole-src/include/swoole_api.h:21: /Users/lixiaowei/swoole-src/include/swoole.h:721:9: error: use of undeclared identifier 'sched_yield' swYield(); ^ /Users/lixiaowei/swoole-src/include/swoole.h:380:19: note: expanded from macro 'swYield' #define swYield() sched_yield() // or usleep(1) ^ 1 error generated. make: *** [php_swoole.lo] Error 1
发布于4年前 · 3 次浏览 · 来自
提问
晓玮123456
### 问题描述 执行 make && sudo make install 时报错 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole :master 3aa03bb9b [clang-format] Code format php 7.2.10 MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports)系统版本 10.14.6 ### 相关代码 ```php 请将代码粘贴至此处(请勿用截图) ``` ### 你期待的结果是什么?实际看到的错误信息又是什么? /bin/sh /Users/lixiaowei/swoole-src/libtool --mode=compile g++ -I. -I/Users/lixiaowei/swoole-src -DPHP_ATOM_INC -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/main -I/Users/lixiaowei/swoole-src -I/Applications/MAMP/bin/php/php7.2.10/include/php -I/Applications/MAMP/bin/php/php7.2.10/include/php/main -I/Applications/MAMP/bin/php/php7.2.10/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.10/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext/date/lib -I/Users/lixiaowei/swoole-src -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/lixiaowei/swoole-src/php_swoole.cc -o php_swoole.lo g++ -I. -I/Users/lixiaowei/swoole-src -DPHP_ATOM_INC -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/main -I/Users/lixiaowei/swoole-src -I/Applications/MAMP/bin/php/php7.2.10/include/php -I/Applications/MAMP/bin/php/php7.2.10/include/php/main -I/Applications/MAMP/bin/php/php7.2.10/include/php/TSRM -I/Applications/MAMP/bin/php/php7.2.10/include/php/Zend -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext -I/Applications/MAMP/bin/php/php7.2.10/include/php/ext/date/lib -I/Users/lixiaowei/swoole-src -I/Users/lixiaowei/swoole-src/include -I/Users/lixiaowei/swoole-src/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -c /Users/lixiaowei/swoole-src/php_swoole.cc -fno-common -DPIC -o .libs/php_swoole.o In file included from /Users/lixiaowei/swoole-src/php_swoole.cc:16: In file included from ./php_swoole_cxx.h:19: In file included from ./php_swoole.h:53: In file included from /Users/lixiaowei/swoole-src/include/swoole_api.h:21: /Users/lixiaowei/swoole-src/include/swoole.h:721:9: error: use of undeclared identifier 'sched_yield' swYield(); ^ /Users/lixiaowei/swoole-src/include/swoole.h:380:19: note: expanded from macro 'swYield' #define swYield() sched_yield() // or usleep(1) ^ 1 error generated. make: *** [php_swoole.lo] Error 1
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
2020-08-28
禾秆草
我也是,php版本 7.3.21
赞
0
回复
2020-08-28
李铭昕
执行下这个看看 php --ri posix
赞
0
回复
2020-08-28
郭新华
4.5.3的bug,拉下最新版本的master 已经修复
赞
0
回复
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。