php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58938 event.h not found
Submitted: 2009-11-06 13:51 UTC Modified: 2010-01-22 18:50 UTC
From: gaugau at gmail dot com Assigned: jluedke (profile)
Status: Wont fix Package: gearman (PECL)
PHP Version: 5.3.0 OS: Mac OS X Snow Leopard
Private report: No CVE-ID: None
 [2009-11-06 13:51 UTC] gaugau at gmail dot com
Description:
------------
I tried both installing via "pecl install gearman" and manually, event.h is missing and I don't know what/which library is required. ./configure --help does not have any specific information either. Please let me know what is missing. Thank you.

macbook:gearman-0.6.0 trungson$ sudo make
/bin/sh /Users/trungson/Desktop/gearman-0.6.0/libtool --mode=compile cc  -I. -I/Users/trungson/Desktop/gearman-0.6.0 -DPHP_ATOM_INC -I/Users/trungson/Desktop/gearman-0.6.0/include -I/Users/trungson/Desktop/gearman-0.6.0/main -I/Users/trungson/Desktop/gearman-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2 -Wall   -c /Users/trungson/Desktop/gearman-0.6.0/php_gearman.c -o php_gearman.lo 
mkdir .libs
 cc -I. -I/Users/trungson/Desktop/gearman-0.6.0 -DPHP_ATOM_INC -I/Users/trungson/Desktop/gearman-0.6.0/include -I/Users/trungson/Desktop/gearman-0.6.0/main -I/Users/trungson/Desktop/gearman-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -Wall -c /Users/trungson/Desktop/gearman-0.6.0/php_gearman.c  -fno-common -DPIC -o .libs/php_gearman.o
In file included from /Users/trungson/Desktop/gearman-0.6.0/php_gearman.c:24:
/usr/local/include/libgearman/gearman.h:28:19: error: event.h: No such file or directory
make: *** [php_gearman.lo] Error 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-06 13:57 UTC] gaugau at gmail dot com
After digging a bit more, I believe it's because libevent is installed it into "/opt/local/var/macports/software/libevent/1.4.12_0/opt/local/" (installed via MacPorts)

For the libgearman source, I can can customize it:
./configure --with-libevent-prefix=xxx

How can I customize libevent location when building pecl-gearman the same way?

Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 16 08:01:27 2024 UTC