chenzx023 发表于 2020-2-14 11:29:15

lnmp1.6安装完成后安装swoole扩展出现错误

Warning: popen() has been disabled for security reasons in OS/Guess.php on line 241
PHP Warning:popen() has been disabled for security reasons in /usr/local/php/lib/php/OS/Guess.php on line 241

Warning: fgets() expects parameter 1 to be resource, null given in OS/Guess.php on line 242
PHP Warning:fgets() expects parameter 1 to be resource, null given in /usr/local/php/lib/php/OS/Guess.php on line 242

Warning: pclose() expects parameter 1 to be resource, null given in OS/Guess.php on line 251
PHP Warning:pclose() expects parameter 1 to be resource, null given in /usr/local/php/lib/php/OS/Guess.php on line 251
downloading swoole-4.4.15.tgz ...
Starting to download swoole-4.4.15.tgz (1,454,897 bytes)
................................................................................................................................................................................................................................................................................................done: 1,454,897 bytes
374 source files, building
running: phpize

Warning: popen() has been disabled for security reasons in PEAR/Builder.php on line 467
PHP Warning:popen() has been disabled for security reasons in /usr/local/php/lib/php/PEAR/Builder.php on line 467
ERROR: failed to run `phpize'


看这个报错是没有安装上phpize 嘛

licess 发表于 2020-2-14 14:41:06

需要将提示的几个函数从php.ini中的禁用函数列表中删除
使用源码安装的话需要先 /usr/local/php/bin/phpize ,过程可以参考官网文档:https://wiki.swoole.com/wiki/page/6.html,lnmp也支持pecl安装

chenzx023 发表于 2020-2-14 15:03:15

licess 发表于 2020-2-14 14:41
需要将提示的几个函数从php.ini中的禁用函数列表中删除
使用源码安装的话需要先 /usr/local/php/bin/phpize ...

嗯谢谢 我解决了
页: [1]
查看完整版本: lnmp1.6安装完成后安装swoole扩展出现错误