MacOS环境下使用HomeBrew安装[email protected]

电脑系统版本

  • macOS Mojave 10.14.4

HomeBrew

安装brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

卸载brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

查看brew版本

$ brew -v
Homebrew 3.5.2-156-gf1d04b4
Homebrew/homebrew-core (git revision fb1865467aa; last commit 2022-06-25)

搜索可安装的PHP

$ brew search php
==> Formulae
brew-php-switcher                        [email protected]
denji/nginx/php-session-nginx-module     phpbrew
php                                      phplint
php-code-sniffer                         phpmd
php-cs-fixer                             phpmyadmin
php-cs-fixer@2                           phpstan
[email protected]                                  phpunit
[email protected]                                  pcp
[email protected]                                  pup

安装指定版本的PHP

$ brew install [email protected]

最终卡在了依赖下载,没有完成安装

其他方式

phpenv、phpbrew 也都以失败告终

猜你喜欢

转载自blog.csdn.net/mouday/article/details/125469203