donglengyuan6826 2019-02-28 12:21
浏览 97

在Mac OS X El Capitan上安装php56(不赞成使用自制程序)

I have a dev environment on OS X El Capitan: - homebrew - nginx - php56 - mysql - etc.

Homebrew no longer support El Capitan, also no support php56. But my frontend at now not compatible with php7. I'm input brew update && brew upgradeand output:

==> Upgrading 7 outdated packages:
git 2.20.1 -> 2.21.0, httpd 2.4.37_1 -> 2.4.38, mysql 5.7.22 -> 8.0.15, nghttp2 1.35.1 -> 1.36.0, nginx 1.15.8 -> 1.15.9, openssl@1.1 1.1.1a -> 1.1.1b, pcre 8.42 -> 8.43
==> Upgrading openssl@1.1 
...
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because openssl/libressl is provided by macOS so don't link an incompatible version.
...
...
==> Upgrading nginx 
==> Installing dependencies for nginx: pcre
==> Reinstalling 1 broken dependent from source:
curl-openssl
...

After that php does not start. I rollback to previous version all updated formulas, uninstall php. When reinstalling php56:

==> Downloading https://php.net/get/php-5.6.39.tar.xz/from/this/mirror
Already downloaded: ~/Library/Caches/Homebrew/downloads/6bf39b5c5c754a031a92474c066074442448c1331f50f80882ef744cf17d8fa3--php-5.6.39.tar.xz
==> Patching
patching file acinclude.m4
Hunk #1 succeeded at 444 (offset 3 lines).
Hunk #2 succeeded at 459 (offset 3 lines).
Hunk #3 succeeded at 494 (offset 3 lines).
Hunk #4 succeeded at 506 (offset 3 lines).
Hunk #5 succeeded at 2500 with fuzz 2 (offset 81 lines).
patching file Zend/zend_compile.h
patching file Zend/zend_execute.h
==> ./buildconf --force
Last 15 lines from ~/Library/Logs/Homebrew/php@5.6/01.buildconf:
2019-02-28 14:55:01 +0300

./buildconf
--force

Forcing buildconf
Removing configure caches
buildconf: checking installation...
buildconf: autoconf not found.
           You need autoconf version 2.59 or newer installed
           to build PHP from Git.
make: *** [buildmk.stamp] Error 1
make: *** Waiting for unfinished jobs....

autoconf installed

Any suggestions pls?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog