美文网首页PHP经验分享
mac安装php各种问题收集

mac安装php各种问题收集

作者: phperstar | 来源:发表于2019-02-22 16:36 被阅读1次

    /Users/phperstar/Downloads/swoole/include/swoole.h:498:10: fatal error: 'openssl/ssl.h' file not fou
    找到你们的openssl文件夹,把它拷贝到swoole安装包下的include下面,技术是openssl的所有.h文件,我的openssl文件的目录为/usr/local/opt/openssl/include 把这个路径下的openssl文件夹copy到安装文件夹中的include下就ok了。
    cp -R /usr/local/opt/openssl/include/* ./include/

    ./php_swoole.h:130:2: error: "Enable openssl support, require openssl library."
    brew info openssl
    echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
    export LDFLAGS="-L/usr/local/opt/openssl/lib"
    export CPPFLAGS="-I/usr/local/opt/openssl/include"
    重新编译安装

    homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
    Homebrew/php自来水在2018年3月底被弃用,并将所有PHP公式转移到Homebrew/core,旧的brew tap homebrew/dupes、brew tap homebrew/versions、brew tap homebrew/homebrew-php都会报这个错误
    brew tap homebrew/core

    includes... configure: error: Cannot find igbinary.h
    sudo pecl install igbinary

    相关文章

      网友评论

        本文标题:mac安装php各种问题收集

        本文链接:https://www.haomeiwen.com/subject/hibeyqtx.html