在安裝event時(shí)報(bào)這個(gè)錯(cuò)誤,請(qǐng)問(wèn)怎么解決?
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擴(kuò)展依賴(lài)libevent包,所以先保證libevent庫(kù)已安裝OK,如: yum install libevent-devel2、然后configure時(shí)加上這個(gè)參數(shù)試試:?--with-event-libevent-dir=【填libevent庫(kù)安裝路徑】
@4960:你是如何解決的?我也碰到這個(gè)問(wèn)題,我先執(zhí)行:apt-get install libevent libevent-devel,然后執(zhí)行 pecl install event 還是報(bào)你上面的錯(cuò)誤