gpt4 book ai didi

ruby-on-rails - gem 更新后的错误——系统

转载 作者:行者123 更新时间:2023-12-01 11:46:02 26 4
gpt4 key购买 nike

我在 OSX 上的 ruby​​ on Rails 应用程序上工作。使用 RVM 管理 ruby 。我刚刚做了:

gem update --system

我认为这是您必须偶尔做的事情。但这似乎破坏了一些东西。当我启动我的应用程序(我正在使用 Pow)时,我看到了这些错误:

Error starting application
Your Rack app raised an exception when Pow tried to run it.

NameError: uninitialized constant Gem::SourceIndex
~/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:187:in `stub_source_index170'
~/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:353:in `stub_rubygems'
~/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/rubygems_integration.rb:250:in `replace_entrypoints'
~/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/runtime.rb:14:in `setup'
~/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler.rb:116:in `setup'
~/.rvm/gems/ruby-1.9.3-p362/gems/bundler-1.2.3/lib/bundler/setup.rb:17:in `<top (required)>'
~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `require'
~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:35:in `require' ~/Sites/mafticket/config/boot.rb:6:in `<top
(required)>' ~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' ~/Sites/mafticket/config/application.rb:1:in `<top
(required)>' ~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' ~/Sites/mafticket/config/environment.rb:2:in `<top
(required)>' ~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
~/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require' ~/Sites/mafticket/config.ru:3:in `block in <main>'
~/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval' ~/Library/Application
Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/builder.rb:4:in `initialize' ~/Sites/mafticket/config.ru:1:in `new' ~/Sites/mafticket/config.ru:1:in
`<main>' ~/Library/Application Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:50:in `eval' ~/Library/Application
Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:50:in `load_config' ~/Library/Application
Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:43:in `initialize' ~/Library/Application
Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:13:in `new' ~/Library/Application
Support/Pow/Versions/0.4.0/node_modules/nack/lib/nack/server.rb:13:in `run' ~/Library/Application
Support/Pow/Versions/0.4.0/node_modules/nack/bin/nack_worker:4:in `<main>'

我做错了什么还是应该重新开始?我可以撤消吗?

谢谢

最佳答案

很好的反馈,谢谢

看起来我通过键入解决了我的问题:

gem update bundler

关于ruby-on-rails - gem 更新后的错误——系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15251214/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com