首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
通过pecl安装的swoole在重新编译的时候失败了
环境 ```shell PHP 7.2.8 (cli) (built: Aug 31 2018 09:40:28) ( NTS ) OpenSSL 1.0.2k-fips 26 Jan 2017 Linux vultr.guest 4.18.5-1.el7.elrepo.x86_64 #1 SMP Fri Aug 24 11:35:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) swoole 版本 v4.1.2 错误提示 /bin/sh /root/swoole-src-4.1.2/libtool --mode=compile cc -I. -I/root/swoole-src-4.1.2 -DPHP_ATOM_INC -I/root/swoole-src-4.1.2/include -I/root/swoole-src-4.1.2/main -I/root/swoole-src-4.1.2 Usage: php [options] [-f] <file> [--] [args...] php [options] -r <code> [--] [args...] php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...] php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...] php [options] -S <addr>:<port> [-t docroot] [router] php [options] -- [args...] php [options] -a -a Run interactively -c <path>|<file> Look for php.ini file in this directory -n No configuration (ini) files will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse and execute <file>. -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r <code> Run PHP <code> without using script tags <?..?> -B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines -H Hide any passed arguments from external tools. -S <addr>:<port> Run with built-in web server. -t <docroot> Specify document root <docroot> for built-in web server. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z <file> Load Zend extension <file>. args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf <name> Show information about function <name>. --rc <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>. -I/root/swoole-src-4.1.2 -I/root/swoole-src-4.1.2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /root/swoole-src-4.1.2/swoole.c -o swoole.lo /bin/sh: -c: line 0: syntax error near unexpected token `<' /bin/sh: -c: line 0: `/bin/sh /root/swoole-src-4.1.2/libtool --mode=compile cc -I. -I/root/swoole-src-4.1.2 -DPHP_ATOM_INC -I/root/swoole-src-4.1.2/include -I/root/swoole-src-4.1.2/main -I/root/swoole-src-4.1.2 Usage: php [options] [-f] <file> [--] [args...] php [options] -r <code> [--] [args...] php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...] php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...] php [options] -S <addr>:<port> [-t docroot] [router] php [options] -- [args...] php [options] -a -a Run interactively -c <path>|<file> Look for php.ini file in this directory -n No configuration (ini) files will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse and execute <file>. -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r <code> Run PHP <code> without using script tags <?..?> -B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines -H Hide any passed arguments from external tools. -S <addr>:<port> Run with built-in web server. -t <docroot> Specify document root <docroot> for built-in web server. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z <file> Load Zend extension <file>. args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf <name> Show information about function <name>. --rc <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>. -I/root/swoole-src-4.1.2 -I/root/swoole-src-4.1.2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /root/swoole-src-4.1.2/swoole.c -o swoole.lo ' make: *** [swoole.lo] Error 1 ```
发布于6年前 · 2 次浏览 · 来自
提问
S
Sentiger
环境 ```shell PHP 7.2.8 (cli) (built: Aug 31 2018 09:40:28) ( NTS ) OpenSSL 1.0.2k-fips 26 Jan 2017 Linux vultr.guest 4.18.5-1.el7.elrepo.x86_64 #1 SMP Fri Aug 24 11:35:05 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) swoole 版本 v4.1.2 错误提示 /bin/sh /root/swoole-src-4.1.2/libtool --mode=compile cc -I. -I/root/swoole-src-4.1.2 -DPHP_ATOM_INC -I/root/swoole-src-4.1.2/include -I/root/swoole-src-4.1.2/main -I/root/swoole-src-4.1.2 Usage: php [options] [-f] <file> [--] [args...] php [options] -r <code> [--] [args...] php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...] php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...] php [options] -S <addr>:<port> [-t docroot] [router] php [options] -- [args...] php [options] -a -a Run interactively -c <path>|<file> Look for php.ini file in this directory -n No configuration (ini) files will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse and execute <file>. -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r <code> Run PHP <code> without using script tags <?..?> -B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines -H Hide any passed arguments from external tools. -S <addr>:<port> Run with built-in web server. -t <docroot> Specify document root <docroot> for built-in web server. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z <file> Load Zend extension <file>. args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf <name> Show information about function <name>. --rc <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>. -I/root/swoole-src-4.1.2 -I/root/swoole-src-4.1.2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /root/swoole-src-4.1.2/swoole.c -o swoole.lo /bin/sh: -c: line 0: syntax error near unexpected token `<' /bin/sh: -c: line 0: `/bin/sh /root/swoole-src-4.1.2/libtool --mode=compile cc -I. -I/root/swoole-src-4.1.2 -DPHP_ATOM_INC -I/root/swoole-src-4.1.2/include -I/root/swoole-src-4.1.2/main -I/root/swoole-src-4.1.2 Usage: php [options] [-f] <file> [--] [args...] php [options] -r <code> [--] [args...] php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...] php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...] php [options] -S <addr>:<port> [-t docroot] [router] php [options] -- [args...] php [options] -a -a Run interactively -c <path>|<file> Look for php.ini file in this directory -n No configuration (ini) files will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse and execute <file>. -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r <code> Run PHP <code> without using script tags <?..?> -B <begin_code> Run PHP <begin_code> before processing input lines -R <code> Run PHP <code> for every input line -F <file> Parse and execute <file> for every input line -E <end_code> Run PHP <end_code> after processing all input lines -H Hide any passed arguments from external tools. -S <addr>:<port> Run with built-in web server. -t <docroot> Specify document root <docroot> for built-in web server. -s Output HTML syntax highlighted source. -v Version number -w Output source with stripped comments and whitespace. -z <file> Load Zend extension <file>. args... Arguments passed to script. Use -- args when first argument starts with - or script is read from stdin --ini Show configuration file names --rf <name> Show information about function <name>. --rc <name> Show information about class <name>. --re <name> Show information about extension <name>. --rz <name> Show information about Zend extension <name>. --ri <name> Show configuration for extension <name>. -I/root/swoole-src-4.1.2 -I/root/swoole-src-4.1.2/include -DHAVE_CONFIG_H -Wall -pthread -g -O2 -c /root/swoole-src-4.1.2/swoole.c -o swoole.lo ' make: *** [swoole.lo] Error 1 ```
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-01-11
夜
夜
不知道 是不是 /bin/sh脚本的原因 但是打开完全看不懂
赞
0
回复
2020-01-11
梦你安
make clean 后重新编译 或者先卸载 确认PHP版本大于7
赞
0
回复
2020-01-12
從
從1♂而终『』
除了没卸载其余都试过了
赞
0
回复
2020-01-19
c
cnzoner
[Swoole学习课程](https://ke.qq.com/course/328509?flowToken=1005244)
赞
0
回复
2020-01-23
I
ID查QQ,www.bt16.cn
php 7.2.8 好像是有问题 我换7.1就可以正常安装
赞
0
回复
2020-05-29
zhule
回复: 梦你安 大佬 make时出现这个错误是什么原因呢? Makefile:214: recipe for target 'swoole_serialize.lo' failed make: *** [swoole_serialize.lo] Error 1 ERROR: `make' failed
赞
0
回复