RVM With JRuby 1.7.0 “Unknown Ruby Interpreter”

2020-06-04 08:53发布

问题:

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