An exception was encountered when building the PHP development environment on MAC OSX (when installing PHP 5.5 with brew)?

Source: Internet
Author: User
Tags php development environment
==>./configure--prefix=/usr/local/cellar/php55/5.5.19--localstatedir=/usr/local/var--sysconfdir=/usr/local/ etc/php/5.5--with-config-file-path=/usr/local/
Checking for krb5-config .../usr/bin/krb5-config
Checking for Dsa_get_default_method In-lssl ... no
Checking for X509_free in-lcrypto ... yes
Checking for pkg-config ... no

configure: error: Cannot find OpenSSL's 
  
   

Reply content:

==>./configure--prefix=/usr/local/cellar/php55/5.5.19--localstatedir=/usr/local/var--sysconfdir=/usr/local/ etc/php/5.5--with-config-file-path=/usr/local/
Checking for krb5-config .../usr/bin/krb5-config
Checking for Dsa_get_default_method In-lssl ... no
Checking for X509_free in-lcrypto ... yes
Checking for pkg-config ... no

configure: error: Cannot find OpenSSL's 
  
   

Recommended Phpbrew

sudo ln -s /Applications/Xcode6-Beta4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include /usr/include

via:https://github.com/homebrew/homebrew-php/issues/1181

Mamp you deserve to have

Mac generally comes with PHP environment, is not a conflict

xcode-select --install正确的结果应该是xcode-select: error: command line tools are already installed, use "Software Update" to install updates否则, 你就按提示安装.安装之后就可以了.
  • 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.