bartwell
@bartwell

Проблема с установкой pecl-event?

Есть сервер на FreeBSD 8.0. На него нужно установить pecl-event, у которого в зависимостях есть libevent2. Но pecl-event упорно не хочет устанавливаться, ссылаясь на то, что данная версия libevent2 не имеет функции bufferevent_getfd(). Я поискал в исходниках libevent2 — все нормально, функция есть.

Выглядит это так:
# pecl install https://bitbucket.org/osmanov/pecl-event/downloads/event-1.1.1.tgz
downloading event-1.1.1.tgz ...
Starting to download event-1.1.1.tgz (39,332 bytes)
..........done: 39,332 bytes
25 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
Enable internal debugging in event [no] : 
Include libevent protocol-specific functionality support including HTTP, DNS, and RPC [yes] : 
building in /tmp/pear/pear-build-servHMYwrB/event-1.1.1
running: /tmp/pear/event/configure --enable-event-debug=no --with-event-extra
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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... yes
checking build system type... amd64-unknown-freebsd8.0
checking host system type... amd64-unknown-freebsd8.0
checking target system type... amd64-unknown-freebsd8.0
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/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... no
checking for nawk... nawk
checking if nawk is broken... no
checking for event core support... yes, shared
checking for event extra functionality support... yes
checking for ev debug support... no
checking PHP version... ok
checking for event files in default path... found in /usr/local
checking for bufferevent_getfd in -levent_core... no
configure: error: libevent_core >= 2.0.2-alpha not found
ERROR: `/tmp/pear/event/configure --enable-event-debug=no --with-event-extra' failed



libevent установлен:
# pkg_info | grep event
libevent2-2.0.21    API for executing callback functions on events or timeouts



Что здесь можно сделать? Подскажите, пожалуйста.
  • Вопрос задан
  • 3969 просмотров
Пригласить эксперта
Ответы на вопрос 1
@cmx
Решение в Fedora/RedHat/Centos:
sudo yum install libevent-devel
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы