[英]Bundle update installs gems into ~/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0
I have a rails project located at ~/RailsApp 我有一个Rails项目位于〜/ RailsApp
From there I run: bundle update 从那里我运行:捆绑包更新
The ensuing gems are then installed into this directory: 然后将随后的gem安装到此目录中:
~/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0 ~/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0
What is railstutorial_rails_4_0 and where is it coming from? 什么是railstutorial_rails_4_0,它来自哪里? Is this directory configured somewhere?
该目录配置在某处吗?
It's an issue because when I try to debug in RubyMine I receive this message: Could not find nokogiri-1.6.6.2 in any of the sources (Bundler::GemNotFound) However, when I run "gems list" I see that the gem is installed - but it's in that strange directory of ruby-2.0.0-p247@railstutorial_rails_4_0. 这是一个问题,因为当我尝试在RubyMine中调试时,收到以下消息:在任何来源中都找不到nokogiri-1.6.6.2(Bundler :: GemNotFound)。但是,当我运行“ gems list”时,我看到该gem是已安装-但它位于ruby-2.0.0-p247@railstutorial_rails_4_0的那个奇怪的目录中。
Also, what is the difference between ~/.rvm/gems/ruby-2.0.0-p247 and ~/.rvm/gems/ruby-2.0.0-p247@global? 另外,〜/ .rvm / gems / ruby-2.0.0-p247和~/.rvm/gems/ruby-2.0.0-p247@global有什么区别? There is also a directory called ~/.rvm/gems/ruby-2.0.0-p451@railsapp.com
还有一个名为~/.rvm/gems/ruby-2.0.0-p451@railsapp.com的目录
Why are there so many directories in the gems folder and not just one to contain all the gems? 为什么gems文件夹中有这么多目录,而不仅仅是包含所有gem的目录?
The path ~/.rvm/gems/
indicates that you are using RVM . 路径
~/.rvm/gems/
表示您正在使用RVM 。 The name railstutorial_rails_4_0
after the @ is an RVM gemset . @之后的名称
railstutorial_rails_4_0
是RVM gemset 。
You likely have a .ruby-gemset
file inside your project, containing the name of the gemset. 您的项目中可能有一个
.ruby-gemset
文件,其中包含gemset的名称。 RVM automatically switches to it when found. 找到后,RVM会自动切换到它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.