当前位置:网站首页>MacOS环境下使用HomeBrew安装[email protected]

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

2022-06-26 21:35:00 彭世瑜

电脑系统版本

  • 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
[email protected]                           phpstan
[email protected]                                  phpunit
[email protected]                                  pcp
[email protected]                                  pup

安装指定版本的PHP

$ brew install [email protected]

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

其他方式

phpenv、phpbrew 也都以失败告终

原网站

版权声明
本文为[彭世瑜]所创,转载请带上原文链接,感谢
https://pengshiyu.blog.csdn.net/article/details/125469203