RVM报告未安装Gemfile ruby

RVM报告未安装Gemfile ruby,第1张

概述在我的Gemfile中,我指定了: ruby '1.9.3', engine: 'jruby', engine_version: '1.7.9' 但进入我的Rails项目目录会使rvm抛出此错误: RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,you can ignore these 在我的Gemfile中,我指定了:

ruby '1.9.3',engine: 'jruby',engine_version: '1.7.9'

但进入我的Rails项目目录会使rvm抛出此错误:

RVM used your Gemfile for selecting Ruby,it is all fine - Heroku does that too,you can ignore these warnings with 'rvm rvmrc warning ignore /home/petey/rails/kotoba/Gemfile'.To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.ruby-1.9.3,engine:jruby,engine_version:1.7.9 is not installed.To install do: 'rvm install ruby-1.9.3,engine_version:1.7.9'

但是,我确实安装了jruby 1.7.9:

$rvm Listrvm rubIEs   jruby-1.7.9 [ x86_64 ]   ruby-1.9.3-p392 [ x86_64 ]=* ruby-2.0.0-p247 [ x86_64 ]# => - current# =* - current && default#  * - default$rvm use jrubyUsing /home/petey/.rvm/gems/jruby-1.7.9$ruby -vjruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on OpenJDK 64-Bit Server VM 1.7.0_25-b30 [linux-amd64]

事实上,我甚至可以选择rvm使用jruby和rails工作正常.

Gemfile中的ruby指令有问题吗?

我跟着official specification,这有一个非常相似的例子.

编辑:运行rvm install ruby​​-1.9.3,engine:jruby,engine_version:1.7.9在提示符下,rvm继续安装ruby-1.9.3-p484.再一次,它在进入项目目录时显示相同的错误消息:

RVM used your Gemfile for selecting Ruby,engine_version:1.7.9'
解决方法 根据 this SO回答:

RVM has limited support of the ruby directive,you can use comment to overwrite what will be used by RVM.

通过增加:

#ruby=jruby-1.7.9

在ruby指令正下方的Gemfile中,rvm似乎能够选择正确的ruby:

$cd kotobaRVM used your Gemfile for selecting Ruby,you can ignore these warnings with 'rvm rvmrc warning ignore /home/petey/rails/kotoba/Gemfile'.To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.$ruby -vjruby 1.7.9 (1.9.3p392) 2013-12-06 87b108a on OpenJDK 64-Bit Server VM 1.7.0_25-b30 [linux-amd64]
总结

以上是内存溢出为你收集整理的RVM报告未安装Gemfile ruby全部内容,希望文章能够帮你解决RVM报告未安装Gemfile ruby所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1284265.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存