Compiling PHP5 on a Mac, problems

Discussion in 'Mac Programming' started by bluefloyd8, Apr 15, 2009.

  1. macrumors newbie

    Joined:
    Dec 28, 2008
    #1
    Hello everyone.
    I am writing a CLI PHP script and want to use pcntl_fork(). Unforkunatly, the fork does not work unless I have compiled PHP with --enable-pcntl. I have tried to find a way to do this, but have not found anything.

    Any idea?
     
  2. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    Just pass --enable-pcntl to the configuration script when you compile PHP along with your other options.
     

Share This Page