Mac10.11phpize Error

Source: Internet
Author: User
I changed my computer and installed PHP's php-protobuf framework extension. I encountered some problems and recorded them here. Go to the php-protobuf page. phpize is as follows {code ...} google solution: sudoln-sApplicationsXcode.appContentsDeveloperPlatforms... I changed my computer and installed PHP's php-protobuf framework extension. I encountered some problems and recorded them here.

Go to the php-protobuf page. phpize is as follows:

grep: /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:  

Google

Solution:

Sudo ln-s
/Applications/Xcode. app/Contents/Developer/Platforms/MacOSX. platform/Developer/SDKs/MacOSX10.11.sdk/usr/include // usr/include

Executed

ln: /usr/iclude: Operation not permitted

This error is reported.

/Usr/does not include this folder.

If mkdir include cannot create a folder, Operation not permitted is reported.

Please advise

Reply content:

I changed my computer and installed PHP's php-protobuf framework extension. I encountered some problems and recorded them here.

Go to the php-protobuf page. phpize is as follows:

grep: /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:  

Google

Solution:

Sudo ln-s
/Applications/Xcode. app/Contents/Developer/Platforms/MacOSX. platform/Developer/SDKs/MacOSX10.11.sdk/usr/include // usr/include

Executed

ln: /usr/iclude: Operation not permitted

This error is reported.

/Usr/does not include this folder.

If mkdir include cannot create a folder, Operation not permitted is reported.

Please advise

Dizzy, What ls is talking about, installing command line tool will automatically help you configure the Unix development environment

xcode-select --install

Php environment is faulty. Try brew to reinstall php.

sudo ln -s/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/ /usr/include

Cause of link failure 10.11 enhanced system protection/usr wood has operation Permissions

Solution

Temporarily disable system protection:

Press command R ("R" button) immediately when you press the START key. When the apple icon and progress bar appear in the middle, open the button and wait until the installation interface and OS X utility are restored"
After the window appears, click "utility" in the top menu bar, click "terminal" in the drop-down menu, and enter "csrutil disable" directly at the terminal flashing character position"
Press enter to restart the computer.

Of course, you can also directly use phpize in XAMPP

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.