请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

mac环境下,编译安装swoole时,报错

/Users/yeyanqing/swoole/src/os/sendfile.c:23:5: error: conflicting types for 'swoole_sendfile'

int swoole_sendfile(int out_fd, int in_fd, off_t *offset, off_t size)

    ^

/Users/yeyanqing/swoole/include/swoole.h:2166:5: note: previous declaration is here

int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size);

    ^

1 error generated.

make: *** [src/os/sendfile.lo] Error 1

make: *** Waiting for unfinished jobs....

请问下是怎么回事?

正在回答 回答被采纳积分+3

2回答

BingXiong 2018-04-14 12:20:19

你好,我昨天make的时候也遇到了同样的报错,我的出现报错的环境是mac、php 7.2.4、swoole 2.1.3,后来看到php这个最新的版本是三周前才更新的可能有点问题,我把php版本和swoole的版本换成上一个stable的版本php 7.1.16,swoole的版本换成和老师一样的2.1.0就好了。你可以试试。

0 回复 有任何疑惑可以回复我~
singwa 2018-04-14 01:16:56

swoole版本号

PHP版本号分别是多少

0 回复 有任何疑惑可以回复我~
  • 我也遇到了这个问题,我的php是7.2.4 swoole是2.1.3
    回复 有任何疑惑可以回复我~ 2018-04-14 05:00:25
  • 我的解决了,把PHP换成 7.1.16不用最新版,swoole换成2.1.0不用最新版就好了
    回复 有任何疑惑可以回复我~ 2018-04-14 12:21:40
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信