最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

swoole安装失败怎么办

来源:动视网 责编:小采 时间:2020-11-03 18:22:57
文档

swoole安装失败怎么办

swoole安装失败怎么办:swoole安装失败怎么办?常见错误make或make install无法执行或编译错误NOTICE: PHP message: PHP Warning: PHP Startup: swoole: Unable to initialize module Module compiled with module API=20090626 P
推荐度:
导读swoole安装失败怎么办:swoole安装失败怎么办?常见错误make或make install无法执行或编译错误NOTICE: PHP message: PHP Warning: PHP Startup: swoole: Unable to initialize module Module compiled with module API=20090626 P


swoole安装失败怎么办?

常见错误

make或make install无法执行或编译错误

NOTICE: PHP message: PHP Warning: PHP Startup: swoole: Unable to initialize module
Module compiled with module API=20090626
PHP compiled with module API=20121212
These options need to match
in Unknown on line 0

php版本和编译时使用的phpize和php-config不对应,需要使用绝对路径来进行编译。使用绝对路径执行PHP。

/usr/local/php-5.4.17/bin/phpize
./configure --with-php-config=/usr/local/php-5.4.17/bin/php-config
/usr/local/php-5.4.17/bin/php server.php

缺少mysql头文件

php_mysqli_structs.h:64:23: fatal error: my_global.h: No such file or directory

没有找到mysqlclient的头文件,需要安装mysqlclient-dev

建议自行编译php,不要使用Linux包管理系统自带的php版本

缺少pcre.h头文件

fatal error: pcre.h: No such file or directory

原因是缺少pcre,需要安装libpcre

Cannot find autoconf

phpize命令需要autoconf工具,请先安装它。

make install失败

make install需要root权限,如果不是以root用户登录的,请用sudo或su,再进行安装。

修改了php.ini后,php -m或phpinfo中没有swoole

请移步该文档

缺少hiredis.h

编译配置时启用--enable-async-redis,但没有安装hiredis库,编译时会报fatal error: 'hiredis/hiredis.h' file not found,请安装hiredis库或者去掉--enable-async-redis选项。

error: too many arguments to function 'zend_exception_error'

你的PHP版本低于PHP-5.3.10,请升级PHP版本。

推荐学习: swoole教程

文档

swoole安装失败怎么办

swoole安装失败怎么办:swoole安装失败怎么办?常见错误make或make install无法执行或编译错误NOTICE: PHP message: PHP Warning: PHP Startup: swoole: Unable to initialize module Module compiled with module API=20090626 P
推荐度:
标签: 安装 处理 swoole
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top