简体   繁体   English

无法在 el capitan 上安装 php

[英]Can't install php on el capitan

I just got a mac and i try to install php like what i have on windows.我刚得到一个mac,我尝试安装php,就像我在windows上安装的一样。 I downloaded homebrew, git, vscode... But when i type brew install php or brew install php@7.4 i doesn't work.我下载了自制软件,git,vscode ......但是当我输入 brew install php 或 brew install php@7.4 我不起作用。

I got the following error.我收到以下错误。

Thank's for your help谢谢你的帮助

==> Installing php dependency: pcre
==> ./configure --prefix=/usr/local/Cellar/pcre/8.44 --enable-utf8 --enable-pcre
==> make
==> make test
Last 15 lines from /Users/admin/Library/Logs/Homebrew/pcre/03.make:
============================================================================
# TOTAL: 6
# PASS:  5
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
make[3]: *** [test-suite.log] Error 1
make[2]: *** [check-TESTS] Error 2
make[1]: *** [check-am] Error 2
make: *** [check] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!


Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
old version.

Because your version of macOS is too old and not supported, as it says in the error log.因为您的 macOS 版本太旧且不受支持,如错误日志中所述。 https://docs.brew.sh/Installation https://docs.brew.sh/Installation

You need to have at least macOS Mojave (10.14).您至少需要 macOS Mojave (10.14)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM