未知的红宝石解释器版本(不知道如何处理):RUBY_VERSION [英] Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION

查看:256
本文介绍了未知的红宝石解释器版本(不知道如何处理):RUBY_VERSION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试rvm use .以便遵循此处的指示试图修复混乱的配置,我在控制台中收到以下消息:

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:

未知的红宝石解释器版本(不知道如何处理):RUBY_VERSION. 无法确定要使用哪个Ruby; .应该包含.rvmrc或.versions.conf或.ruby-version或.rbfu-version或.rbenv-version,或Gemfile中的相应行.

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.

我猜这是指Gemfile中的变量RUBY_VERSION:

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

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

我该怎么办?我想RUBY_VERSION变量必须定义为系统变量?

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

我只是想使用Jekyll.

I'm just trying to use Jekyll.

现在我有

  • gem -v 2.6.14
  • ruby -v ruby​​ 2.0.0p648(2015-12-16修订版53162)[universal.x86_64-darwin15]
  • jekyll -v失败,出现非常长的错误.
  • bundle -v Bundler版本1.14.4
  • 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_VERSION应该是特定的版本字符串,例如'2.4.2'(带引号).

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

但是,如果您不特别在意使用哪个Ruby版本,那么您应该能够删除整行,而rvm将使用默认版本.

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.

这篇关于未知的红宝石解释器版本(不知道如何处理):RUBY_VERSION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆