出于某种原因,我的实时服务器上的Rails控制台现在无法加载。我拉下了一个新的分支,强制检查了新的分支(可能是一个坏主意),因为在实时服务器上没有真正的改变(理论上),并且在新分支和主分支上我都遇到了以下错误运行控制台:
/home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find pg-0.11.0 in any of the sources (Bundler::GemNotFound)
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `map!'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `materialize'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/definition.rb:127:in `specs'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/environment.rb:27:in `specs'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:41:in `candidate?'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:60:in `setup'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>'
from /home/pastonpaper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
from /home/pastonpaper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
from /home/pastonpaper/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /home/pastonpaper/.rvm/gems/ruby-1.9.3-p194@pastonpaper/bin/ruby_noexec_wrapper:9:in `<main>'
真的不知道如何解决这个问题。这似乎是一个宝石问题,但这怎么可能改变?
答案 0 :(得分:0)
看起来它与postres gem(pg)有关。也许您需要运行bundle install
或检查您的Gemfile(和Gemfile.lock)是否有异常。