在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?

dongtui8593
dongtui8593 通过这种方法解决了
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问