具有JRuby 1.7.0的RVM“未知Ruby解释器” [英] RVM With JRuby 1.7.0 "Unknown Ruby Interpreter"

查看:41
本文介绍了具有JRuby 1.7.0的RVM“未知Ruby解释器”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下Gemfile设置了基本的Rails应用程序:

I setup a basic Rails application with the following Gemfile:

source 'https://rubygems.org'    
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.0'
gem 'rails', '3.2.8'

每当我进入项目目录时,都会收到以下消息:

Whenever I change into the project directory I get the following message:


未知的红宝石解释器版本:
'1.9.3,engine:jruby,engine_version:1.7.0'。

Unknown ruby interpreter version: '1.9.3,engine:jruby,engine_version:1.7.0'.

I' m运行RVM 1.16.17并安装了'jruby-1.7.0'。是我的Gemfile引擎配置错误,还是需要在RVM中更改某些内容?

I'm running RVM 1.16.17 and have installed 'jruby-1.7.0'. Is my Gemfile engine misconfigued or do I need to change something in RVM?

推荐答案

RVM对ruby指令的支持有限可以使用注释来覆盖RVM将使用的内容:

RVM has limited support of the ruby directive, you can use comment to overwrite what will be used by RVM:

#ruby=jruby-1.7.0

这篇关于具有JRuby 1.7.0的RVM“未知Ruby解释器”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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