How to fix Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION.
Coincidentally today I am also trying to setup Jekyll and am seeing the same problem. I am using RVM and it otherwise works fine (running multiple Rails dev sites locally). When I run env | grep 'RUBY'
I get:
$ env | grep 'RUBY'
MY_RUBY_HOME=/Users/myusername/.rvm/rubies/ruby-2.0.0-p247
RUBY_VERSION=ruby-2.0.0-p247
However, I just continued and ran bundle install
, then bundle exec jekyll serve
and the site booted up without issue.
Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION
RUBY_VERSION should be a specific version string, like '2.4.2' (with the quotes).
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.
RVM error: Unknown ruby interpreter version when trying to verify an .rvmrc file
Looks like a typo in your .rvmrc file. Perhaps it should read:
environment_id="rvm 1.9.2-p180@projectr3"
I think you are missing the dash before the p180.
ian.
RVM, where is Ruby 3.0.0?
If you have not updated rvm do that first RVM Upgrading
rvm get stable
# or
rvm get master # for even newer versions not in stable 3.0.0 in this case
To see all available rubies run
rvm list remote all
# or
rvm list known # as pointed out in the comments
you should see ruby-3.0.0
in the list of available rubies
Then run
rvm install ruby-3.0.0
CentOS RVM Error: Unknown ruby string (do not know how to handle): ruby-2.1.0
I just came across the same issue and filed it at https://github.com/wayneeseguin/rvm/issues/3244.
This appears to be a bug in rvm 1.26.7 and as a workaround, you can downgrade to 1.26.6 by running:
\curl -sSL https://get.rvm.io | bash -s -- --version 1.26.6
rvm reload
Edit:
RVM 1.26.8 was releases and fixed this issue, running rvm get stable
is the preferred fix now.
What's the right string to use when installing Ruby 3.1 through RVM on Mac OS Big Sur?
> rvm list known
# MRI Rubies
[ruby-]1.8.6[-p420]
[ruby-]1.8.7[-head] # security released on head
[ruby-]1.9.1[-p431]
[ruby-]1.9.2[-p330]
[ruby-]1.9.3[-p551]
[ruby-]2.0.0[-p648]
[ruby-]2.1[.10]
[ruby-]2.2[.10]
[ruby-]2.3[.8]
[ruby-]2.4[.10]
[ruby-]2.5[.8]
[ruby-]2.6[.6]
[ruby-]2.7[.2]
[ruby-]3[.0.0]
ruby-head
3.1 doesn't seem to be on the list, but to install it you would use:
> rvm install ruby-3.1.0
or
> rvm install 3.1.0
But again, doesn't seem available, at least in rvm stable or latest. Looking at GitHub, they have merged patches to add 3.1 support but the latest releases don't list it: https://github.com/rvm/rvm/releases.
RVM With JRuby 1.7.0 Unknown Ruby Interpreter
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
Related Topics
Actioncontroller::Routingerror (No Route Matches [Put] ) for Ajax Call
Error Installing Debugger-Linecache in Ruby 1.9.3
What's the Difference Between Request.Remote_Ip and Request.Ip in Rails
Check Whether a String Contains One of Multiple Substrings
Relative Path to Your Project Directory
Monkey-Patching VS. S.O.L.I.D. Principles
Preferred Way to Private Messages Modeling in Rails 3
Using Ruby Libraries and Gems with a Shoes App
How to Get the Ip Address of My Local MAChine in Ruby
Having Trouble Installing Any Ruby 1.9.X (With Rbenv) on MAC Osx Due to Psych Yaml Parse Errors
Rails Active Record Find(:All, :Order => ) Issue
How to Check the Gem Version in Ruby at Runtime
What Are the Differences Between Rbenv, Rvm, and Chruby
How to Get Parent Node in Capybara
Ruby: How to Iterate Over an Array of Hashes and Return the Values in a Single String