Ruby on Rails 更新 gem(“gem update --system”),收到错误消息
我正在运行命令“gem update --system”。我收到以下错误消息。任何帮助将不胜感激!
我正在运行 Rails 1.9.2 patch 136 和 ruby 3.0.3。
Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/source_index.rb:62:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/source_index.rb:52:in `from_installed_gems'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:914:in `source_index'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/gem_path_searcher.rb:98:in `init_gemspecs'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/gem_path_searcher.rb:13:in `initialize'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:873:in `new'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:873:in `searcher'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:495:in `find_files'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:1034:in `load_plugins'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/gem_runner.rb:84:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from setup.rb:25:in `<main>'
我的环境如下所示:
- RUBYGEMS 版本:1.3.7
- Ruby 版本:1.9.2(2010-12-25 补丁级别 136)[x86_64-darwin10.4.0]
- 安装目录:/Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial
- Ruby 可执行文件:/Users/woshea/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
- 可执行目录:/Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/bin
- 红宝石平台:
- 红宝石
- x86_64-darwin-10
- 宝石路径:
- /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial
- /Users/woshea/.rvm/gems/ruby-1.9.2-p136@global
- 宝石配置:
- :update_sources =>正确
- :详细=>正确
- :基准=>假
- :回溯=>假
- :bulk_threshold =>; 1000
- 远程来源:
I'm running the command "gem update --system". I get the following error message. Any help would be appreciated!
I'm running Rails 1.9.2 patch 136 and ruby 3.0.3.
Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/source_index.rb:62:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/source_index.rb:52:in `from_installed_gems'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:914:in `source_index'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/gem_path_searcher.rb:98:in `init_gemspecs'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/gem_path_searcher.rb:13:in `initialize'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:873:in `new'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:873:in `searcher'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:495:in `find_files'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems.rb:1034:in `load_plugins'
from /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/gems/rubygems-update-1.4.1/lib/rubygems/gem_runner.rb:84:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from setup.rb:25:in `<main>'
My Environment looks as follows:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [x86_64-darwin10.4.0]
- INSTALLATION DIRECTORY: /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial
- RUBY EXECUTABLE: /Users/woshea/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
- EXECUTABLE DIRECTORY: /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
- GEM PATHS:
- /Users/woshea/.rvm/gems/ruby-1.9.2-p136@rails3tutorial
- /Users/woshea/.rvm/gems/ruby-1.9.2-p136@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至 2011 年 1 月 2 日,RubyGems 1.4.0/1.4.1 版本不适用于 MRI Ruby 1.9。这是有记录的:请参阅发布帖子。
由于您正在运行 MRI Ruby 1.9,请与我一起等待更新的 MRI Ruby 1.9,它将支持更新的 RubyGems 1.4。
As of 2011-Jan-02, the RubyGems 1.4.0/1.4.1 release does not work with MRI Ruby 1.9. This is documented: see the release post.
Since you are running MRI Ruby 1.9, please join me in waiting for an updated MRI Ruby 1.9 that will support an updated RubyGems 1.4.