我在OS X El Capitan上有一个开发环境: -自酿 -Nginx -php56 -MySQL的 -等等
自制软件不再支持El Capitan,也不再支持php56。
但是我的前端目前与php7不兼容。
我输入brew update && brew upgrade
并输出:
==> 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
...
之后,php无法启动。 我将所有更新的公式回滚到以前的版本,卸载php。 重新安装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
有什么建议吗?