gpt4 book ai didi

ruby - 需要帮助在 Mac 上安装 Ruby 2.7.2

转载 作者:行者123 更新时间:2023-12-03 15:10:17 27 4
gpt4 key购买 nike

我正在尝试在我的 Mac(带有所有更新的最新操作系统)上安装 Ruby 版本 2.7.2 并执行以下操作

brew update
brew upgrade rbenv ruby-build
进而
rbenv install 2.7.2
ruby-build: definition not found: 2.7.2

See all available versions with `rbenv install --list'.

If the version you need is missing, try upgrading ruby-build:

brew update && brew upgrade ruby-build
所以我尝试按照上面的说明进行操作并得到这个
brew update && brew upgrade ruby-build
Already up-to-date.
Warning: ruby-build 20200926 already installed

最佳答案

您需要安装最新的ruby-build

$ brew unlink ruby-build # remove STABLE version
$ brew install --HEAD ruby-build
$ rbenv install -l | grep '2.7.2'
2.7.2


Only latest stable releases for each Ruby implementation are shown.
Use 'rbenv install --list-all' to show all local versions.

关于ruby - 需要帮助在 Mac 上安装 Ruby 2.7.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64185912/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com