configure: error: libevent >= 1.4.11 could not be found

编译php5.3.3的时候报错
编译选项

./configure --prefix=/usr/local/php-5.3.3 \
--with-config-file-path=/usr/local/php-5.3.3/etc \
--with-bz2 \
--with-curl \
--enable-ftp \
--enable-sockets \
--disable-ipv6 \
--with-gd \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--enable-gd-native-ttf \
--with-iconv-dir=/usr/local \
--enable-mbstring \
--enable-calendar \
--with-gettext \
--with-libxml-dir=/usr/local \
--with-zlib \
--with-pdo-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-mysql=mysqlnd \
--enable-dom \
--enable-xml \
--enable-fpm \
--enable-debug \
--with-libdir=lib64

错误信息

configure: error: libevent >= 1.4.11 could not be found

安装相关的包

yum -y install libevent

依然报错
还是失败了,继续google,发现有人在ubuntu里面也遇到这个问题,再安装libevent-dev这个包之后解决问题了,于是我依样画葫芦:

yum -y install libevent-dev

安装完成

标签: php, linux, php编译

添加新评论