美文网首页
Mac 安装PHP8

Mac 安装PHP8

作者: Smile_468d | 来源:发表于2021-10-03 08:42 被阅读0次

    1、下载php8稳定版源码

    wget https://www.php.net/distributions/php-8.0.0.tar.gz

    tar -zxvf php-8.0.0.tar.gz

    ./configure

    常见问题

    1、configure: error: Please specify the install prefix of iconv with --with-iconv=<DIR>

        处理方法:检查iconv是否安装:iconv --help如果已经安装,获取路径:which iconv;然后重新运行:./configure --with-iconv= 路径 

          如果没有安装(建议安装) 或 第2步失败:

                1 brew install libiconv

                2 ./configure --with-iconv=$(brew --prefix libiconv)


    相关文章

      网友评论

          本文标题:Mac 安装PHP8

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