出现这个问题是因为没有安装php的扩展开发导致的,建议将php以及apache的开发都安装上,使用如下的命令。
yum install php-devel php-pear httpd-devel
如果还不行的话,执行:yum install php-pear php5-dev
pecl install channel://pecl.php.net/libevent-0.1.0 提示libevent installation [autodetect]: 时按回车
如果报错:ERROR: `/var/tmp/libevent/configure –with-libevent’ failed
执行:yum install libevent-devel