RVM With JRuby 1.7.0 “Unknown Ruby Interpreter”

时光总嘲笑我的痴心妄想 提交于 2019-12-04 12:34:39

问题


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:

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

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?


回答1:


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


来源:https://stackoverflow.com/questions/13340587/rvm-with-jruby-1-7-0-unknown-ruby-interpreter

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