直到这里,肯定是没找到libevent的目录, 本地查看是否安装了libevent, 终于在一个目录下找到了libevent-2.0.12-stable目录。 如果未安装,则先需安装libevent。 复制代码 代码如下: wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gz tar zxvf libevent-2.0.20-stable.tar.gz cd libevent-2.0.20-stable/ ./configure --prefix=/usr/local/libevent-2.0.20-stable/ make make install cd ../
OK,继续编译扩展 复制代码 代码如下: $ cd libevent-0.0.5 $ /usr/local/php/bin/phpize $ ./configure --with-php-config=/usr/local/php/bin/php-config --with-libevent=/usr/local/libevent-2.0.20-stable $ make && make install