Установка PHP> 8.0 на MacOS 11 (Homebrew)Php

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 Установка PHP> 8.0 на MacOS 11 (Homebrew)

Сообщение Anonymous »

Я пытаюсь установить PHP версию 8.4 (или любая версия выше 8.0) на свой MacBook, но каждый раз, когда я сталкиваюсь с ошибкой с Curl или с MacOS 11. Попытка установить PHP v8.4

Код: Выделить всё

% brew install php@8.4

Warning: You are using macOS 11.
We (and Apple) do not provide support for this old version.

This is a Tier 3 configuration:
https://docs.brew.sh/Support-Tiers#tier-3
Do not report any issues to Homebrew/* repositories!
Read the above document instead before opening any issues or PRs.

...............................
.. lots of package downloads ..
...............................

curl: (35) error:1400442E:SSL routines:CONNECT_CR_SRVR_HELLO:tlsv1 alert protocol version
Error: php@8.2: Failed to download resource "libsodium"
Download failed: https://download.libsodium.org/libsodium/releases/libsodium-1.0.20.tar.gz
< /code>
, который (после просмотра Интернета и спроса AI) указывает устаревшие сертификаты SSL (не знаю, действительно ли это проблемой). < /p>
Я попробовал несколько вещей, таких как: < /p>
# Update Homebrew itself
brew update

# Update curl
brew install curl

# Update certificates
brew install ca-certificates

export PATH="/usr/local/bin:$PATH"
Но это ничего не изменило.

Код: Выделить всё

export HOMEBREW_FORCE_BREWED_CURL=1
brew config   # check that the Curl: entry now points to Homebrew curl
brew install pure-ftpd
Это, казалось, сработало, когда я попытался снова установить PHP, потому что запуск: Brew установить shivammathur/php/php@8.4 Снова установил пакеты, которые не могли раньше.

Код: Выделить всё

==> python3.13 -m venv --system-site-packages --without-pip /usr/local/Cellar/asciidoc/10.2.1/libexec
==> python3.13 -m pip --python=/usr/local/Cellar/asciidoc/10.2.1/libexec/bin/python install /private/tmp/asciidoc-20250616-5971-avx3y
Last 15 lines from /Users/stagair/Library/Logs/Homebrew/asciidoc/02.python3.13:
2025-06-16 09:05:44 +0000

python3.13
-m
pip
--python=/usr/local/Cellar/asciidoc/10.2.1/libexec/bin/python
install
--verbose
--no-deps
--no-binary=:all:
--ignore-installed
--no-compile
/private/tmp/asciidoc-20250616-5971-avx3y6/asciidoc-10.2.1

/usr/local/opt/python@3.13/bin/python3.13: No module named pip.__main__; 'pip' is a package and cannot be directly executed

Error: You are using macOS 11.
We (and Apple) do not provide support for this old version.

This is a Tier 3 configuration:
https://docs.brew.sh/Support-Tiers#tier-3
Do not report any issues to Homebrew/* repositories!
Read the above document instead before opening any issues or PRs.

This build failure was expected, as this is not a Tier 1 configuration:
https://docs.brew.sh/Support-Tiers
Do not report any issues to Homebrew/* repositories!
Read the above document instead before opening any issues or PRs.
вообще возможно установить PHP 8 на MacBook?

Подробнее здесь: https://stackoverflow.com/questions/796 ... 1-homebrew
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»