在Ubuntu 8.04上编译PHP 5.3.3:找不到libevent

当试图在Ubuntu 8.04上configurationPHP 5.3.3时,出现以下错误:

checking for libevent >= 1.4.11 install prefix... configure: error: Could not find libevent >= 1.4.11 in /usr/local/ 

我尝试安装libevent-dev和libevent1软件包,但同样的错误。

然后我删除了包,从源代码下载和编译libevent。 同样的错误。

findlibevent安装到/usr/local/lib/libevent.so与其所有朋友在/ usr / local / lib /中的显示。

我尝试使用以下选项进行configuration:

 --with-libevent-dir=/usr/local/lib/ 

基本上同样的错误:

  checking for libevent >= 1.4.11 install prefix... configure: error: Could not find libevent >= 1.4.11 in /usr/local/lib/ 

有什么build议么??

显然在configuration脚本中有一个错误。 解决方法是运行:

 export LD_LIBRARY_PATH=/usr/local/lib 

在运行./configure之前。

输出这个variables是否适合你? 如果是的话,你在什么操作系统?

对我来说(rhel 5.4)的解决scheme是从源码安装libevent,细节在这里:

http://www.iainlbc.com/2010/11/configure-error-could-not-find-libevent-1-4-11-when-configuring-php/