首页 文章

Rails 3.0.3和Polyglot Gem问题

提问于
浏览
1

我希望你能帮助我 .

我有一个在本地运行的rails应用程序,也在Heroku上传和运行 . 一切都好 . 上周,我又开始工作并陷入困境 .

在我开始的时候,我打开了终端并运行'rails s'来启动本地服务器 . 我收到了这个错误:

doug-naegeles-macbook-pro-17:elig_check dougnaegele $ rails s /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:129:in resolve': Could not find gem 'polyglot', required by 'rails (= 3.0.3)', in any of the sources (Bundler::VersionConflict) from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:127:in catch'from / Library / Ruby / Gems / 1.8 / gems / bundler-1.0.7 / lib / bundler / resolver.rb:127:in resolve' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:151:in resolve'from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/ definition.rb:90:在 specs' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:135:in specs_for'from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:124:in requested_specs' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/environment.rb:23:in requested_specs'from / Library / Ruby / Gems / 1.8 / gems / bundler-1.0.7 / lib / bundler / runtime.rb:11:in setup' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler.rb:100:in setup ' from /Users/dougnaegele/Sites/elig_check/config/boot.rb:8 from script/rails:5:in `require' from script / rails:5


当我运行'gem list'时,我可以看到Polyglot列出:

doug-naegeles-macbook-pro-17:elig_check dougnaegele $ gem list

*** LOCAL GEMS ***

abstract(1.0.0)actionmailer(3.0.3,2.3.5,2.2.2,1.3.6)actionpack(3.0.3,2.3.5,2.2.2,1.13.6)actionwebservice(1.2.6)activemodel( 3.0.3)activerecord(3.0.3,2.3.5,2.2.2,1.15.6)activeresource(3.0.3,2.3.5,2.2.2)activesupport(3.0.3,2.3.5,2.2.2, 1.4.4)acts_as_ferret(0.5.2,0.4.3)arel(2.0.6,2.0.4)authlogic(2.1.6)blythedunham-sms_on_rails(0.1.0)builder(3.0.0,2.1.2)bundler( 1.0.7)capistrano(2.5.19,2.5.2)cgi_multipart_eof_fix(2.5.0)颜色(1.4.1)配置(1.2.0)破解(0.1.8)守护进程(1.1.0,1.0.10)脱轨 - ziya(2.1.5)dnssd(1.4,0.6.0)erubis(2.6.6)fastthread(1.0.7,1.0.1)fcgi(0.8.8,0.8.7)ferret(0.11.6)gem_plugin(0.2 . 3)googlecharts(1.6.0)heroku(1.14.10,1.14.3)highline(1.6.1,1.5.0)hpricot(0.8.3,0.6.164)httparty(0.6.1)i18n(0.5.0, 0.4.2)jk-ferret(0.11.8.2)json_pure(1.4.6)launchy(0.3.7)libxml-ruby(1.1.4,1.1.2)little-plugger(1.1.2)logging(1.4.3) mail(2.2.12,2.2.10)mattetti-googlecharts(1.4.0)mime-types(1.16) mongrel(1.1.5)mysql(2.8.1)needle(1.3.0)net-scp(1.0.4,1.0.1)net-sftp(2.0.5,2.0.1,1.1.1)net-ssh( 2.0.23,2.0.4,1.1.4)net-ssh-gateway(1.0.1,1.0.0)nifty-generators(0.4.2)多语言(0.3.1)机架(1.2.1,1.0.1)机架式(0.6.13)机架测试(0.5.6)导轨(3.0.3,2.3.5,2.2.2,1.2.6)铁路(3.0.3)耙(0.8.7,0.8.3) RedCloth(4.2.3,4.1.1)rest-client(1.6.1)ruby-openid(2.1.8,2.1.2)ruby-yadis(0.3.4)rubygems-update(1.3.7,1.3.6) rubynode(0.1.5)续集(3.18.0,3.17.0)sinatra(1.1.0,1.0)sqlite3-ruby(1.3.2,1.2.5,1.2.4)static_record_cache(0.2.0)taps(0.3 . 14)termios(0.9.4)thor(0.14.6)倾斜(1.1)树梢(1.4.9)twilio(2.9.0)twiliolib(2.0.7)tzinfo(0.3.23)xmpp4r(0.5,0.4)


当我运行'gem sources'时,我得到了这个:

doug-naegeles-macbook-pro-17:elig_check dougnaegele $ gem sources *** CURRENT SOURCES ***

rubygems.org/ gems.github.com gems.github.com gems.github.com/ gems.github.com gems.rubyforge.org

哪个看起来正确 - 这就是Polyglot的生活方式 .


当我运行'bundle install'时,我得到了这个:

doug-naegeles-macbook-pro-17:elig_check dougnaegele $ bundle install获取http://rubygems.org/的源索引无法在任何来源中找到'rails (= 3.0.3)'所需的gem 'polyglot'


任何的想法?我试图重新安装宝石,运行'捆绑安装'等 . 没有运气 .

(我怀疑这个 - > rails(3.0.3,2.3.5,2.2.2,1.2.6)可能是问题所在,但我还不想走这条路 . 我有应用程序运行在2.3.5上没有重构为rails 3.0)

提前致谢!道格

1 回答

  • 0

    来自以上评论的OP:

    如果有帮助,在我的Gemfile中我将rails 3.0.3更改为rails 3.0.0并重新编写'bundle install' . 现在一切都有效 . 直到稍后解决问题 .

相关问题