`brew install cocoapods` fetch the latest ruby 3.2.1. how can I prevent it and lock Ruby 3.1 without ruby version managers?

huangapple go评论51阅读模式
英文:

`brew install cocoapods` fetch the latest ruby 3.2.1. how can I prevent it and lock Ruby 3.1 without ruby version managers?

问题

你现在看到的是 brew install cocoapods 下载的是 ruby@3.2,但我需要使用 ruby@3.1

英文:

As you see brew install cocoapods download ruby@3.2 but I need to use ruby@3.1!

`brew install cocoapods` fetch the latest ruby 3.2.1. how can I prevent it and lock Ruby 3.1 without ruby version managers?

答案1

得分: 2

如果您的 Ruby 是通过 Homebrew 安装的,brew pin ruby 或您已安装的特定 Ruby 公式应该能解决问题。

但是,需要指出的是,Homebrew 并不进行混合版本的测试,因此更改可能会导致其他问题的副作用。

对于像 Ruby、PostgreSQL 等工具,使用其他版本管理工具可能会减少问题的发生。

英文:

If your ruby was installed via homebrew,brew pin ruby or the specific ruby formula you have installed should do the trick.

That said, homebrew doesn't do any testing of mix-and-match versions so it's possible you may run into other problems as a side effect of the change.

For things like ruby, postgres, and so on other tooling to manage versions may create fewer points of friction than homebrew.

huangapple
  • 本文由 发表于 2023年3月7日 18:32:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/75660826.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定