Macosx-10.11-MacOSX built-in PHP how to extend 'pcntl'

Source: Internet
Author: User
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 startCommand, 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 startCommand, 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.