Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
645 views
in Technique[技术] by (71.8m points)

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

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
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...