macos mojave 安装php5.6

发布时间:2019-08-07 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了macos mojave 安装php5.6脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

背景介绍

Mac os 1.14 系统之后,如果想安装php5.6版本的时候,无法用brew install php5.6安装,因为在新的brew中已经废弃了php5.6php7.0,如果使用brew seArch php搜索出来的PhP版本最低是php@7.1的,因为公司项目需要安装php5.6的版本,困扰了我很久,终于在GOOGLE找到了何在新版本的系统上安装php5.6的方法,分享给大家。

系统安装

  1. 添加

    brew tap exolnet/homebrew-dePRecated

  2. 搜索php

    brew search php

  3. 安装php

    brew install php@5.6

  4. 启动

    brew services start php@5.6

php 扩站安装

  1. memcache

    PEcl install memcache-3.0.8

    • 问题总结

      1. configure: error: memcache support requires ZLIB. Use --wITh-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located

        • 解决方案

          不可直接复制,注意上面的crul的版本
          brew install zlib
          
          ln -s /usr/local/Cellar/zlib/1.2.11/include/* /usr/local/include
          
          ln -s /usr/local/Cellar/zlib/1.2.11/lib/* /usr/local/lib

脚本宝典总结

以上是脚本宝典为你收集整理的macos mojave 安装php5.6全部内容,希望文章能够帮你解决macos mojave 安装php5.6所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。