在安装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
1、event扩展依赖libevent包,所以先保证libevent库已安装OK,如: yum install libevent-devel2、然后configure时加上这个参数试试: --with-event-libevent-dir=【填libevent库安装路径】
已经决绝了,报错也是因为我之前没有安装libevent包,安装后就可以了,谢谢
@4960:你是如何解决的?我也碰到这个问题,我先执行:apt-get install libevent libevent-devel,然后执行 pecl install event 还是报你上面的错误