简体   繁体   English

软件包更新将gem安装到~/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0

[英]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_0RVM 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.

相关问题 Rails 4,ruby-2.0.0-p247,pow,rvm - LoadError:无法加载这样的文件 - bundler / setup - Rails 4, ruby-2.0.0-p247, pow, rvm - LoadError: cannot load such file — bundler/setup 将Ruby 2.0.0-p247更新为Ruby-2.0.0-p353。安装Rails 4.0.0时出错。在GNU / Linux上 - Update of Ruby 2.0.0-p247 to Ruby-2.0.0-p353. Error to install Rails 4.0.0. on GNU/Linux 了解Ruby环境(rvm,rails,gem等) - Understanding Ruby environment (rvm, rails, gems, etc…) /.rvm/gems/ruby-2.0.0-p481/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:8:在`require&#39;中:无法加载此类文件-降级( LoadError) - /.rvm/gems/ruby-2.0.0-p481/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:8:in `require': cannot load such file — debase (LoadError) RVM,Ruby和Rails安装中的gem问题 - Issue with gems in RVM, Ruby and Rails installation 试图用珠宝盒更新ruby ruby​​-2.0.0-p247 - Trying to update ruby ruby-2.0.0-p247 with jewelry box .rvm / gems / ruby​​-2.0.0-p353 / gems / configatron-2.9.1 / lib / configatron / store.rb:328:in` <class:Store> &#39;:未初始化的常量Psych :: Syck(NameError) - .rvm/gems/ruby-2.0.0-p353/gems/configatron-2.9.1/lib/configatron/store.rb:328:in `<class:Store>': uninitialized constant Psych::Syck (NameError) 无法安装Rails-Windows 8,Ruby 2.0.0p247 - Can't Install Rails - Windows 8, Ruby 2.0.0p247 升级到ruby 2.0.0-p247和rails 4.0.0 - Upgrade to ruby 2.0.0-p247 and rails 4.0.0 安装PG宝石,导轨4宝石2.0.0-P247时出错 - Error installing pg gem, rails 4 ruby 2.0.0-p247
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM