Issue #16 resolved
Craig Fairhurst created an issue


I'm passing --with-event-libevent-dir to configure and its not seeing lib event and failing. See below:

[root@tower event-1.11.1]# ./configure --with-event-core --with-event-extra --enable-event-debug --with-event-libevent-dir=/usr/lib64
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20100525
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for Event core support... yes, shared
checking for Event thread safety support... no
checking for Event extra functionality support... yes
checking for OpenSSL support in event... yes
checking for OpenSSL installation prefix... no
checking whether Event debugging support enabled... yes
checking whether to enable sockets support in Event... yes
checking whether Event supports the current PHP version... ok
checking for include/event2/event.h... not found
configure: error: Please reinstall the event library, or provide the installation prefix via --with-event-libevent-dir option
[root@tower event-1.11.1]# 

Not sure why this isn't working. Nothing I try works, including installing -dev packages.

I'm running CentoOS 6.

Comments (3)

  1. Ruslan Osmanov repo owner


    the script is searching for


    where /usr/lib64 comes from --with-event-libevent-dir option.

    CentOS 6 libevent-devel package installs the C headers into /usr/include/event2. So to get the headers we need --with-event-libevent-dir=/usr.

    The script implies that the libraries should be found in one of the following places:


    where $EVENT_DIR comes from --with-event-libevent-dir option.

    The libevent package installs the libraries into /usr/lib64. So to get the libraries we still need --with-event-libevent-dir=/usr.

    Thus, we just need to install libevent and libevent-devel packages, then rebuild the extension using --with-event-libevent-dir=/usr.

  2. Log in to comment