librelist archives

« back to archive

not working on mac

not working on mac

From:
zekus
Date:
2011-03-06 @ 00:26
Hello Guys,

I'm trying photon cause I think is a promising project but I have some
problems starting the server:

zks-pro:test antonio$ sudo hnu server start

Fatal error: Call to undefined function photon\manager\pcntl_fork() in
/usr/local/PEAR/photon/manager.php on line 597

Call Stack:
    0.0008     724032   1. {main}() /usr/local/PEAR/photon.php:0
    0.0101    2255752   2. photon\manager\ServerManager->run()
/usr/local/PEAR/photon.php:246
    0.0108    2293808   3. photon\manager\ServerManager->daemonize()
/usr/local/PEAR/photon/manager.php:302


Any Idea?

Antonio

Re: [photon.users] not working on mac

From:
Mehdi Kabab
Date:
2011-03-06 @ 00:37
Hi Antonio

Le 6 mars 2011 à 01:26, zekus a écrit :

> I'm trying photon cause I think is a promising project but I have some 
problems starting the server:
> zks-pro:test antonio$ sudo hnu server start
> Fatal error: Call to undefined function photon\manager\pcntl_fork() in 
/usr/local/PEAR/photon/manager.php on line 597

The Process Control[^1] PHP extension is not installed. To install it with
macport, simply type the following:

	$ sudo port install php5-pcnt

[^1]: http://php.net/manual/en/book.pcntl.php

--
Mehdi Kabab

My french book about Gimp: http://gimp4you.eu.org/livre/
Blog: http://pioupioum.fr/
Twitter: http://twitter.com/piouPiouM

Re: [photon.users] not working on mac

From:
zekus
Date:
2011-03-06 @ 00:52
Thanks Mehdi! ;)

On 6 March 2011 00:37, Mehdi KABAB <mehdi@pioupioum.fr> wrote:

> Hi Antonio
>
> Le 6 mars 2011 à 01:26, zekus a écrit :
>
> I'm trying photon cause I think is a promising project but I have some
> problems starting the server:
> zks-pro:test antonio$ sudo hnu server start
> Fatal error: Call to undefined function photon\manager\pcntl_fork() in
> /usr/local/PEAR/photon/manager.php on line 597
>
>
> The Process Control[^1] PHP extension is not installed. To install it with
> macport, simply type the following:
>
> $ sudo port install php5-pcnt
>
> [^1]: http://php.net/manual/en/book.pcntl.php
>
> --
> Mehdi Kabab
>
> My french book about Gimp: http://gimp4you.eu.org/livre/
> Blog: http://pioupioum.fr/
> Twitter: http://twitter.com/piouPiouM
>
>

Re: [photon.users] not working on mac

From:
Thomas Keller
Date:
2011-03-06 @ 00:34
Am 06.03.11 01:26, schrieb zekus:
> Hello Guys,
> 
> I'm trying photon cause I think is a promising project but I have some
> problems starting the server:
> 
> zks-pro:test antonio$ sudo hnu server start
> 
> Fatal error: Call to undefined function photon\manager\pcntl_fork() in
> /usr/local/PEAR/photon/manager.php on line 597

Hey Antonio!

Ensure that your PHP installation has pcntl support enabled. If you're
using MacPorts, just trigger

 $ sudo port install php5-pcntl

If everything went well, you should receive some output when you execute

 $ php -r 'phpinfo();' | grep pcntl

Thomas.

-- 
GPG-Key 0x160D1092 | tommyd3mdi@jabber.ccc.de | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en

Re: [photon.users] not working on mac

From:
zekus
Date:
2011-03-06 @ 00:50
Hi Thomas,

It worked! I followed this blog

post<http://blog.lancerushing.com/2011/02/getting-phps-pcntl-working-on-snow.html>to
install the pcntl extension because I use brew and there wasn't a
package
there.

Thanks
Antonio


On 6 March 2011 00:34, Thomas Keller <me@thomaskeller.biz> wrote:

> Am 06.03.11 01:26, schrieb zekus:
> > Hello Guys,
> >
> > I'm trying photon cause I think is a promising project but I have some
> > problems starting the server:
> >
> > zks-pro:test antonio$ sudo hnu server start
> >
> > Fatal error: Call to undefined function photon\manager\pcntl_fork() in
> > /usr/local/PEAR/photon/manager.php on line 597
>
> Hey Antonio!
>
> Ensure that your PHP installation has pcntl support enabled. If you're
> using MacPorts, just trigger
>
>  $ sudo port install php5-pcntl
>
> If everything went well, you should receive some output when you execute
>
>  $ php -r 'phpinfo();' | grep pcntl
>
> Thomas.
>
> --
> GPG-Key 0x160D1092 | tommyd3mdi@jabber.ccc.de | http://thomaskeller.biz
> Please note that according to the EU law on data retention, information
> on every electronic information exchange might be retained for a period
> of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en
>
>