使用workerman event扩展安装失败

会尿尿的大鲨鱼

在安装event时报这个错误,请问怎么解决?

configure: error: Please reinstall the event library, or provide the installation prefix via --with-event-libevent-dir option
ERROR: `/tmp/pear/temp/event/configure --with-php-config=/usr/bin/php-config --enable-event-debug=no --enable-event-sockets=yes --with-event-libevent-dir=/usr --with-event-pthreads=no --with-event-extra --with-event-openssl=no --with-event-ns --with-openssl-dir=no' failed

3679 1 0
1个回答

phpcreeper

1、event扩展依赖libevent包,所以先保证libevent库已安装OK,如: yum install libevent-devel2、然后configure时加上这个参数试试: --with-event-libevent-dir=【填libevent库安装路径】

  • 会尿尿的大鲨鱼 2018-11-21

    已经决绝了,报错也是因为我之前没有安装libevent包,安装后就可以了,谢谢

  • henry 2018-12-29

    @4960:你是如何解决的?我也碰到这个问题,我先执行:apt-get install libevent libevent-devel,然后执行 pecl install event 还是报你上面的错误

年代过于久远,无法发表回答
×
🔝