Thanks for the quick response. I tried installing the php54-pear port but I'm not sure what it does. The pear-PEAR port installs some PEAR packages, but doesn't install the "pear" and "pecl" commands used to manage them. Sample code is based on example 3 at http://www.php.net/manual/en/event.examples.php
http://pastebin.com/bUkMWdzB Michael Newton On Wed, Aug 28, 2013 at 8:31 PM, Ryan Schmidt <[email protected]>wrote: > On Aug 28, 2013, at 22:24, Michael Newton wrote: > > > I've installed PHP 5.4.19 using MacPorts, as well as the php54-sockets > package, and installed PEAR manually (if there's a way to do this with > MacPorts, please let me know!) > > sudo port install php54-pear > > I have not used it myself but I assume it works. > > > > I was able to download and compile the events module < > http://pecl.php.net/package/event/1.7.5> without any errors, but when I > try using it in a certain way, I get an error. Digging through the code (I > know just enough to know that I'm in over my head) I found the problem is > here in common.h < > https://bitbucket.org/osmanov/pecl-event/src/74adb2980f6da7c70a00b801aa8e4865ac2f3acc/src/common.h#cl-37 > >: > > > > #if PHP_VERSION_ID >= 50301 && (HAVE_SOCKETS || > defined(COMPILE_DL_SOCKETS)) > > # include <ext/sockets/php_sockets.h> > > # define PHP_EVENT_SOCKETS_SUPPORT > > #endif > > > > HAVE_SOCKETS and COMPILE_DL_SOCKETS are both undefined. Is this a part > of the standard PHP install that's missing? > > > > Forcing either of those flags to be defined causes other problems: > > /private/tmp/pear/install/event/src/util.c:30:2: error: unknown type > name 'php_socket'; did you mean 'php_socket_t'? > > php_socket *php_sock; > > ^~~~~~~~~~ > > php_socket_t > > /opt/local/include/php54/php/main/php_network.h:93:13: note: > 'php_socket_t' declared here > > typedef int php_socket_t; > > ^ > > > > Thanks for any pointers anyone can provide! > > First I should create a port for this module so you don't have to install > it outside of MacPorts. > > Then, if it has the same problems, we can investigate why. > > Could you tell me what PHP code you ran and what error you got? > >
_______________________________________________ macports-users mailing list [email protected] https://lists.macosforge.org/mailman/listinfo/macports-users
