关注

老macos安装openclaw固定brew版本

有台老旧的macbook air,想拿着来试试openclaw(clawbot),结果很多skill都安装不上,看了报错是brew不支持老版本了.

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

brew比macport还是好用很多

根据说明是因为他们基础架构容量有限,因此他们只在最新的3个macOS版本上进行构建。

有的老机型已经不能往上升级操作系统版本,这时就需要降级homebrew版本冻结在当前系统能用的版本。以下以macOS12版本为例:

1去github仓库找支持系统的git 版本号,https://github.com/Homebrew/homebrew-core/commit/46f4b41,可以看到是从这个分支开始去除了macOS12 Monterey的,那么我们就固定在上个提交da66cc3

# homebrew/core
cd $(brew --repository)/Library/Taps/homebrew/homebrew-core/
git checkout -b macOS-monterey-freeze da66cc3
# homebrew
cd $(brew --repository)
git checkout -b macOS-monterey-freeze 9042eb9

3.最后配置不要自动更新,需要在 shell 环境中设置(bash_profile或profile或zshrc)

export HOMEBREW_NO_AUTO_UPDATE=true
export HOMEBREW_NO_INSTALL_FROM_API=1

转载自CSDN-专业IT技术社区

原文链接:https://blog.csdn.net/m0_37962554/article/details/158070582

评论

赞0

评论列表

微信小程序
QQ小程序

关于作者

点赞数:0
关注数:0
粉丝:0
文章:0
关注标签:0
加入于:--