macOS13 安装 brew install php 遇到brew install --build-from-source apr问题
1. 问题描述?
macOS从12更新到13之后,php命令失效,提示
zsh: command not found: php
然后brew卸载原有的再重装就不成功了(7.4/8.0都不行)
~ $ php -v
zsh: command not found: php
~ $ brew install php 127 ↵
Warning: You are using macOS 13.
We do not provide support for this pre-release 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
pre-release version.
Error: apr: no bottle available!
You can try to install from source with:
brew install --build-from-source apr
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
根据提示尝试解决,失败:
~ $ brew install --build-from-source apr 1 ↵
Warning: You are using macOS 13.
We do not provide support for this pre-release 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
pre-release version.
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/7e2246542543bbd3111a4ec29f
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
Error: apr: Failed to download resource "apr--patch"
Download failed: https://raw.githubusercontent.com/Homebrew/formula-patches/7e2246542543bbd3111a4ec29f801e6e4d538f88/apr/r1871981-macos11.patch
2. 期望结果(彻底解决)?
寻求解决办法,如何处理才能安装?
3. 期望结果(暂时解决)?
因为几天了都没解决,导致无法使用php artisan命令,对日常工作、学习已造成麻烦,暂时退而求其次:
有没有巧妙的方法可以解决下?起码让我能使用php artisan命令。