首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
windows 10 下用crywin 来扩展swoole 编译奇怪的失败案例
系统:windows 10 软件 :crywin swooleb版本:swoole-1.7.19-rc2 编译过程中 make 出现的问题: copy.he@copyhe /home/swoole-1.7.19-rc2 $ make /bin/sh /home/swoole-1.7.19-rc2/libtool --mode=compile cc -I. -I/home/swoole-1.7.19-rc2 -DPHP_ATOM_INC -I/home/swoole-1.7.19-rc2/include -I/home/swoole-1.7.19-rc2/main -I/home/swoole-1.7.19-rc2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/swoole-1.7.19-rc2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /home/swoole-1.7.19-rc2/swoole.c -o swoole.lo libtool: compile: cc -I. -I/home/swoole-1.7.19-rc2 -DPHP_ATOM_INC -I/home/swoole-1.7.19-rc2/include -I/home/swoole-1.7.19-rc2/main -I/home/swoole-1.7.19-rc2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/swoole-1.7.19-rc2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /home/swoole-1.7.19-rc2/swoole.c -DDLL_EXPORT -DPIC -o .libs/swoole.o In file included from /usr/include/php/ext/spl/spl_iterators.h:27:0, from /home/swoole-1.7.19-rc2/swoole.c:28: /usr/include/php/ext/pcre/php_pcre.h:29:18: 致命错误:pcre.h:No such file or directory #include "pcre.h" ^ 编译中断。 Makefile:180: recipe for target 'swoole.lo' failed // 这个地方出现的问题也无法理解 make: *** [swoole.lo] Error 1 说的是 pcre.h 不存在 但是打印出来php加载的模块 有pcre copy.he@copyhe /home/swoole-1.7.19-rc2 $ php -m [PHP Modules] Core date dom ereg filter hash libxml mhash mysqlnd openssl pcre // php已经加载了pcre PDO readline Reflection session SPL standard xml [Zend Modules] 我看了一下 基本没有人在windows上面开发用swoole 的吗,还是大家的都没有问题呢? 我参考的是 百度经验有一篇文章 Windows下使用swoole的环境搭建 方案一 这篇文章安装是成功的,有知道我为什么的朋友麻烦回复一下我,谢谢。
发布于9年前 · 1 次浏览 · 来自
提问
文
文 月
系统:windows 10 软件 :crywin swooleb版本:swoole-1.7.19-rc2 编译过程中 make 出现的问题: copy.he@copyhe /home/swoole-1.7.19-rc2 $ make /bin/sh /home/swoole-1.7.19-rc2/libtool --mode=compile cc -I. -I/home/swoole-1.7.19-rc2 -DPHP_ATOM_INC -I/home/swoole-1.7.19-rc2/include -I/home/swoole-1.7.19-rc2/main -I/home/swoole-1.7.19-rc2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/swoole-1.7.19-rc2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /home/swoole-1.7.19-rc2/swoole.c -o swoole.lo libtool: compile: cc -I. -I/home/swoole-1.7.19-rc2 -DPHP_ATOM_INC -I/home/swoole-1.7.19-rc2/include -I/home/swoole-1.7.19-rc2/main -I/home/swoole-1.7.19-rc2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/home/swoole-1.7.19-rc2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /home/swoole-1.7.19-rc2/swoole.c -DDLL_EXPORT -DPIC -o .libs/swoole.o In file included from /usr/include/php/ext/spl/spl_iterators.h:27:0, from /home/swoole-1.7.19-rc2/swoole.c:28: /usr/include/php/ext/pcre/php_pcre.h:29:18: 致命错误:pcre.h:No such file or directory #include "pcre.h" ^ 编译中断。 Makefile:180: recipe for target 'swoole.lo' failed // 这个地方出现的问题也无法理解 make: *** [swoole.lo] Error 1 说的是 pcre.h 不存在 但是打印出来php加载的模块 有pcre copy.he@copyhe /home/swoole-1.7.19-rc2 $ php -m [PHP Modules] Core date dom ereg filter hash libxml mhash mysqlnd openssl pcre // php已经加载了pcre PDO readline Reflection session SPL standard xml [Zend Modules] 我看了一下 基本没有人在windows上面开发用swoole 的吗,还是大家的都没有问题呢? 我参考的是 百度经验有一篇文章 Windows下使用swoole的环境搭建 方案一 这篇文章安装是成功的,有知道我为什么的朋友麻烦回复一下我,谢谢。
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2017-01-07
z
zgf
缺少pcre-dev库,使用cygwin工具安装一个。
赞
0
回复
2017-01-07
H
Hali㊣
谢谢大神 [@rango ](/u/1) 我的环境搭好了,可以在windows上运行我的游戏代码了。
赞
0
回复
2017-01-09
x
xiaopang
建议还是安装Linux虚拟机,cygwin下只是一个体验版本。
赞
0
回复
2018-02-26
星
星火
不要在windows下跑了 我都试过了 没几个能在windows下运行的examples
赞
0
回复