[英]rbenv and managing ruby versions not working. Need 2.5.1
I'm on Mac OS 10.14.6 (Mojave).我在 Mac OS 10.14.6 (Mojave) 上。
I'm trying to switch to ruby version 2.5.1 with rbenv, but i'm getting no errors or any luck changing... I also tried Switch to a different version of ruby using homebrew , but had no luck.我正在尝试使用 rbenv 切换到 ruby 版本 2.5.1,但我没有收到任何错误或任何运气改变......我还尝试使用 homebrew 切换到 ruby 的不同版本,但没有运气。
jj:project me$ rbenv -v
rbenv 1.1.2
jj:project me$ brew -v
Homebrew 2.2.14
Homebrew/homebrew-core (git revision ffa73; last commit 2020-05-03)
Homebrew/homebrew-cask (git revision f3b530; last commit 2020-05-03)
jj:project me$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
jj:project me$ rbenv install 2.5.1
jj:project me$ rbenv local 2.5.1
rbenv: version `2.5.1' not installed
jj:project me$ rbenv install -l
...
2.4.10
2.5.0-dev
2.5.0-preview1
2.5.0-rc1
2.5.0
2.5.1
2.5.2
...
I've tried rbenv uninstall 2.5.1
and it says rbenv: version
2.5.1' not installed`.我试过
rbenv uninstall 2.5.1
,它说rbenv: version
2.5.1' not installed`。 I updated brew and ruby-build too.我也更新了 brew 和 ruby-build 。 Xcode looks fine... not sure what else to try...
Xcode 看起来不错...不知道还有什么可以尝试...
Seems i can even run rbenv install 99
and got no errors.似乎我什至可以运行
rbenv install 99
并且没有错误。 Same with rbenv install gibberish
Eff... Thanks in advance与
rbenv install gibberish
Eff 相同...在此先感谢
Did you add eval "$(rbenv init -)”
to ~/.bashrc?您是否将
eval "$(rbenv init -)”
添加到 ~/.bashrc?
If you didn't, you can try add this and exec source ~/.bashrc
.如果你没有,你可以尝试添加这个并 exec
source ~/.bashrc
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.