Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM With JRuby 1.7.0 "Unknown Ruby Interpreter"

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?

like image 434
Kevin Sylvestre Avatar asked Nov 12 '12 08:11

Kevin Sylvestre


1 Answers

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
like image 56
mpapis Avatar answered Sep 22 '22 13:09

mpapis