Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION

爱⌒轻易说出口 提交于 2019-11-28 10:56:47

问题


Trying to rvm use . in order to follow the instructions in here in an attempt to fix my messed up configuration, I get the following message in console:

Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION. Could not determine which Ruby to use; . should contain .rvmrc or .versions.conf or .ruby-version or .rbfu-version or .rbenv-version, or an appropriate line in Gemfile.

Which I guess refers to the variable RUBY_VERSION in the Gemfile:

source "https://rubygems.org" 
ruby RUBY_VERSION

What should I do? I guess RUBY_VERSION variable has to be defined as a system variable ?

I'm just trying to use Jekyll.

Extra info:

Now I have:

  • gem -v 2.6.14
  • ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
  • jekyll -v fails with a very long error.
  • bundle -v Bundler version 1.14.4

回答1:


RUBY_VERSION should be a specific version string, like '2.4.2' (with the quotes).

However, if you don't particularly care which Ruby version you use, then you should be able to just remove the whole line and rvm will use the default.



来源:https://stackoverflow.com/questions/47035080/unknown-ruby-interpreter-version-do-not-know-how-to-handle-ruby-version

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