Recently, the company needs to build the Phabricator service and use the LAMP suite. When configuring PHP, it needs to expand & #039; pcntl & #039; using multi-process, but there is a problem with expansion: System: MacOSXEICapitanPHP version information: (MacOSX comes with) PHP5.5.27 (cli) (built: Aug2... recently, the company needs to set up the Phabricator service and use the LAMP suite. When configuring PHP, it needs to expand 'pcntl 'to use multiple processes, but it has encountered problems during expansion:
System:
Mac osx ei Capitan
PHP version: (built-in Mac OSX)
PHP 5.5.27 (cli) (built: Aug 22 2015 18:20:44)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
The details are as follows:
UsecpoptdeiMac:phabricator cpopt$ ./bin/phd start
Command, terminal prompt
ERROR: The PHP extension 'pcntl 'is not installed. You must install it to run daemons on this machine.
The installation of 'pcntl 'on the internet is basically the following method:
First download a php-5.4.24 source code package
Enter ext/pcntl/in the source code directory/
Cd/path/to/phpsrc/ext/pcnt/
Phpize
Make
Sudo
Make install
Finally, remember to modify the php. ini of the system and load the pcntl. so module.
I tried the above method, re-downloaded a corresponding version of the PHP installation package, and executed the above command, but always reported the following error:
cpoptdeiMac:pcntl cpopt$ pwd/Users/cpopt/Downloads/php-5.5.27/ext/pcntlcpoptdeiMac:pcntl cpopt$ phpizegrep: /usr/include/php/main/php.h: No such file or directorygrep: /usr/include/php/Zend/zend_modules.h: No such file or directorygrep: /usr/include/php/Zend/zend_extensions.h: No such file or directoryConfiguring for:PHP Api Version: Zend Module Api No: Zend Extension Api No: Cannot find autoconf. Please check your autoconf installation and the$PHP_AUTOCONF environment variable. Then, rerun this script.cpoptdeiMac:pcntl cpopt$
So I googled for another half a day and found the solution to this problem as follows, but it also encountered an error and prompted for illegal operations.
cpopt$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include
So far, it has been a day and has not been solved. I hope you can help me overcome the difficulties! Thank you!
Reply content:
Recently, the company needs to set up the Phabricator service and use the LAMP suite. When configuring PHP, it needs to expand 'pcntl 'to use multiple processes, but it has encountered problems during expansion:
System:
Mac osx ei Capitan
PHP version: (built-in Mac OSX)
PHP 5.5.27 (cli) (built: Aug 22 2015 18:20:44)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
The details are as follows:
UsecpoptdeiMac:phabricator cpopt$ ./bin/phd start
Command, terminal prompt
ERROR: The PHP extension 'pcntl 'is not installed. You must install it to run daemons on this machine.
The installation of 'pcntl 'on the internet is basically the following method:
First download a php-5.4.24 source code package
Enter ext/pcntl/in the source code directory/
Cd/path/to/phpsrc/ext/pcnt/
Phpize
Make
Sudo
Make install
Finally, remember to modify the php. ini of the system and load the pcntl. so module.
I tried the above method, re-downloaded a corresponding version of the PHP installation package, and executed the above command, but always reported the following error:
cpoptdeiMac:pcntl cpopt$ pwd/Users/cpopt/Downloads/php-5.5.27/ext/pcntlcpoptdeiMac:pcntl cpopt$ phpizegrep: /usr/include/php/main/php.h: No such file or directorygrep: /usr/include/php/Zend/zend_modules.h: No such file or directorygrep: /usr/include/php/Zend/zend_extensions.h: No such file or directoryConfiguring for:PHP Api Version: Zend Module Api No: Zend Extension Api No: Cannot find autoconf. Please check your autoconf installation and the$PHP_AUTOCONF environment variable. Then, rerun this script.cpoptdeiMac:pcntl cpopt$
So I googled for another half a day and found the solution to this problem as follows, but it also encountered an error and prompted for illegal operations.
cpopt$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include
So far, it has been a day and has not been solved. I hope you can help me overcome the difficulties! Thank you!
Did the buddy solve the problem ?? I encountered the same problem on MAC.