Unknown ruby interpreter version (do not know how

2019-01-29 04:04发布

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

标签: ruby jekyll rvm
1条回答
地球回转人心会变
2楼-- · 2019-01-29 04:26

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.

查看更多
登录 后发表回答