在 Apple Silicon 上:ruby-build:未找到定义:3.0.0

问题描述

当我尝试安装最新的 ruby​​ (3.0.0) 时,它失败了:

ruby-build: deFinition not found: 3.0.0

很明显,ruby 3 has been released more than a month ago,所以我猜团队在为 Apple Silicon (M1) 构建/打包它时遇到了问题,或者没有人有足够的带宽来这样做。我将如何跟进此事?

解决方法

你试过brew update && brew upgrade rbenv ruby-build吗? That may help you get the latest available version of Ruby。你可以试试rbenv install --list看看你有什么可用的。