Trouble installing PECL module

Ryan Schmidt ryandesign at macports.org
Thu Aug 29 17:33:51 PDT 2013


On Aug 28, 2013, at 22:39, Michael Newton wrote:

> 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.

Ok, that may be intended. Really, we don't want users using pear(1) or pecl(1) to install software into MacPorts; we want users to use MacPorts to install that software. And if ports for the software you want don't exist yet, then they should be created.

I've created the port for php-event:

https://trac.macports.org/changeset/110328

To get it, wait 30 minutes, then run:

sudo port selfupdate
sudo port install php54-event


> Sample code is based on example 3 at http://www.php.net/manual/en/event.examples.php
> 
> http://pastebin.com/bUkMWdzB

I ran your code and got this message:


$ php54 event.php
PHP Warning:  EventListener::__construct(): valid PHP stream resource expected in /private/tmp/event.php on line 42

Warning: EventListener::__construct(): valid PHP stream resource expected in /private/tmp/event.php on line 42
PHP Fatal error:  Call to a member function setErrorCallback() on a non-object in /private/tmp/event.php on line 43

Fatal error: Call to a member function setErrorCallback() on a non-object in /private/tmp/event.php on line 43


Is this what you got also? I do not know if this is normal. You would have to ask the PHP people.




More information about the macports-users mailing list