赞
踩
- // 安装 homebrew
- arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
-
- // brew 安装 cf
- arch -x86_64 /usr/local/Homebrew/bin/brew install cloudfoundry/tap/cf-cli@8
.
.
.
.
先安装brew
然后再用brew安装cf
brew install cloudfoundry/tap/cf-cli@8
当前 (2022-03-25), 在 macbook pro (m1) 上 会出现如下error
cf-cli: The x86_64 architecture is required for this software.
Error: An unsatisfied requirement failed this build.
.
.
.
.
网上关于brew install, 几乎都是如下安装
The Missing Package Manager for macOS (or Linux) — Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
然而,这种方式安装的brew,在macbook pro (m1) 上使用brew 无法成功安装 cloudfoundry
除了上述错误提示,有时候 执行 brew install cloudfoundry/tap/cf-cli@8 会弹出一个 tips让用如下方式安装:Installation — Homebrew Documentation
然而并没有什么用....
直到再github上找到的一个同样问题的issue
https://github.com/cloudfoundry/cli/issues/2131https://github.com/cloudfoundry/cli/issues/2131
what is Rosetta Shell ?
继续 google, 终于解决了问题:
macos - How to run the Homebrew installer under Rosetta 2 on M1 Macbook - Stack Overflow
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。