使用workerman event扩展安装失败

0

在安装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

已邀请:

blogdaren - 常年游走于 Linux、PHP、C、VIM 之间【http://www.phpcreeper.com】

赞同来自:

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

要回复问题请先登录注册