【发布时间】:2022-01-27 05:43:11
【问题描述】:
我尝试在我的 Mac 上安装 ruby。 Ruby 已安装:
brew install ruby
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
ghcup reshape tidy-viewer vermin
==> Updated Formulae
Updated 159 formulae.
==> New Casks
kindavim music-bar presentation
==> Updated Casks
Updated 143 casks.
==> Deleted Casks
airqmon
Warning: ruby 3.0.3 is already installed and up-to-date.
To reinstall 3.0.3, run:
brew reinstall ruby
但是当我运行 ruby -version 时,我得到以下结果:
/Users/oscar/.rbenv/shims/ruby: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory
我正在使用 rbenv。我试图重新安装 rbenv 但我得到了同样的错误。 我是红宝石新手,我需要一些帮助。 如何解决这个错误? 谢谢
【问题讨论】: