类别:Swoole / 日期:2019-12-15 / 浏览:292 / 评论:0
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装置失利怎么办的细致内容,更多请关注ki4网别的相干文章!