rbenv & ruby-build not showing the same list of version

点点圈 提交于 2019-12-13 05:03:56

问题


I'm trying to install the latest ruby version (ie. 2.1.1) with rbenv.

After upgrading brew, ruby-build and rbenv the available ruby versions differs.

Executing:

ruby-build --definitions

gives me (only versions above 2.0):

2.0.0-dev
2.0.0-p0
2.0.0-p195
2.0.0-p247
2.0.0-p353
2.0.0-p451
2.0.0-preview1
2.0.0-preview2
2.0.0-rc1
2.0.0-rc2
2.1.0
2.1.0-dev
2.1.0-preview1
2.1.0-preview2
2.1.0-rc1
2.1.1
2.2.0-dev

With RBenv:

rbenv install -l 

gives me (only versions above 2.0):

2.0.0-dev
2.0.0-p0
2.0.0-p195
2.0.0-p247
2.0.0-p353
2.0.0-preview1
2.0.0-preview2
2.0.0-rc1
2.0.0-rc2
2.1.0-dev
2.1.0-preview1
2.1.0-preview2

What is happening here ?


回答1:


Have you updated rbenv and the rbenv-build plugin to the latest versions?

I personally prefer doing that by browsing to their installation folders (~/.rbenv and ~/.rbenv/plugins/ruby-build) and pulling the latest changes, as in:

git pull origin master

I personally see all rubies when asking for a list (including 2.1.1).



来源:https://stackoverflow.com/questions/23516770/rbenv-ruby-build-not-showing-the-same-list-of-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!