hano
  • 181

swoole安装后报错

我的PHP环境是macOS自带的7.1
源码安装swoole后,把swoole.so文件放到对应位置,并且在php.ini也加载了swoole.so文件
重新启动php-fpm报错(启动正常,phpinfo()中没看到swoole扩展),错误如下:

PHP Startup: Unable to load dynamic library '/usr/local/etc/phpso/swoole.so' - dlopen(/usr/local/etc/phpso/swoole.so, 0x0009): code signature in (/usr/local/etc/phpso/swoole.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. in Unknown on line 0

百度过很多都是说缺少xxx扩展,还没有看到过这个错误的解决

阅读 694
评论 2019-03-16 提问
    2 个回答

    估计是版本不匹配,可以使用“pecl install swoole”重新安装一遍!

    评论 赞赏