如何修复 "Unknown ruby interpreter version (do not know how to handle)"
How to fix "Unknown ruby interpreter version (do not know how to handle)"
我已经在 Mac 运行 Yosemite 的 rails 环境中设置了 ruby 和 ruby 并且正在努力工作我通过教程的方式。当我在 bash 终端中执行以下操作时,我立即停止这样做:
$ rvm use ruby-2.2.1@ learn-rails --create
Unknown ruby interpreter version (do not know how to handle): learn-rails.
我相信一切都设置正确。这是我执行以下操作时得到的结果:
$ rvm list
rvm rubies
ruby-2.2.0 [ x86_64 ]
=* ruby-2.2.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
和:
$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
$ rails -v
Rails 4.2.1
$ rvm -v
rvm 1.26.10 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
$ echo $PATH
/Users/jeff/.rvm/gems/ruby-2.2.1/bin:/Users/jeff/.rvm/gems/ruby-2.2.1@global/bin:/Users/jeff/.rvm/rubies/ruby-2.2.1/bin:/usr/local/heroku/bin:/Users/jeff/.rbenv/shims:/Users/jeff/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jeff/.rvm/bin
提前感谢您的帮助!
@
字符和learn-rails
之间不应有space。额外的 space 导致 RVM 将 learn-rails
误解为要使用的 Ruby 版本。该行应为:
rvm use ruby-2.2.1@learn-rails --create
我已经在 Mac 运行 Yosemite 的 rails 环境中设置了 ruby 和 ruby 并且正在努力工作我通过教程的方式。当我在 bash 终端中执行以下操作时,我立即停止这样做:
$ rvm use ruby-2.2.1@ learn-rails --create
Unknown ruby interpreter version (do not know how to handle): learn-rails.
我相信一切都设置正确。这是我执行以下操作时得到的结果:
$ rvm list
rvm rubies
ruby-2.2.0 [ x86_64 ]
=* ruby-2.2.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
和:
$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
$ rails -v
Rails 4.2.1
$ rvm -v
rvm 1.26.10 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
$ echo $PATH
/Users/jeff/.rvm/gems/ruby-2.2.1/bin:/Users/jeff/.rvm/gems/ruby-2.2.1@global/bin:/Users/jeff/.rvm/rubies/ruby-2.2.1/bin:/usr/local/heroku/bin:/Users/jeff/.rbenv/shims:/Users/jeff/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jeff/.rvm/bin
提前感谢您的帮助!
@
字符和learn-rails
之间不应有space。额外的 space 导致 RVM 将 learn-rails
误解为要使用的 Ruby 版本。该行应为:
rvm use ruby-2.2.1@learn-rails --create