我希望你能帮助我。
我有一个rails应用程序在本地运行,也在Heroku上上传和运行。一切都很好。上周,我又开始工作,遇到了麻烦。
在我一天开始的时候,我打开了终端,运行“rails”来启动本地服务器。我收到了这个错误:
dougnaegele macbook 17:elig_check dougnaegele$ rails的/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捕捉到/Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb的“从/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:inresolve”:90:in specs' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:135:inspecs_for‘from specs' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/definition.rb:135:in requested_specs' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.7/lib/bundler/environment.rb:23:inrequested_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:insetup‘/Users/dougnaegele/Sites/elig_check/config/boot.rb:8 from script/rails:5:in’`require‘from script/rails:5
当我运行“宝石列表”.我可以看到Polyglot列出:
dougnaegele macbook-pro-17:elig_check dougnaegele$ gem list
*本地宝石*
摘要(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)2.3.5,2.2.2,1.4.4) acts_as_ferret (0.5.2,0.4.3)雷尔(2.0.6,2.0.4)创作(2.1.6) blythedunham-sms_on_rails (0.1.0)构建器(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)紧固件(1.0.7,1.0.1) fcgi (0.8.8,( 0.8.7)雪貂(0.11.6) gem_plugin (0.2.3) googlecharts (1.6.0) heroku (1.14.10,1.14.3)高品系(1.6.1,1.5.0)杏(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)小插件(1.1.2)日志记录(1.4.3)邮件(2.2.12 )2.2.10) mattetti-googlecharts (1.4.0) mime-类型(1.16) mongrel (1.1.5) mysql (2.8.1)针(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网关(1.0.1,1.0.1)( 1.0.0)漂亮-发电机(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-客户(1.6.1) ruby-openid (2.1.8,2.1.2) ruby-yadis (0.3.4) rubygems-更新(1.3.7,1.3.6) rubynode (0.1.5)续集(3.18.0,3.17.0) sinatra (1.1.0,1.0) sqlite3-红宝石(1.3.2,1.2.5,1.2.4 static_record_cache (0.2.0)水龙头(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)
当我运行“宝石源”时,我得到了这样的信息:
dougnaegele macbook 17:elig_check dougnaegele$宝石源*当前源*
Rubygithub.com/ gems.github.com gems.github.com github.com/ gems.github.com gems.rubyforge.org
看起来是对的--那就是波利特住的地方。
当我运行“bundle install”时,我得到以下信息:
dougnaegele macbook 17:elig_check dougnaegele$ bundle 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重构)
提前感谢!道格
发布于 2016-08-25 20:57:17
执行部分来自上述评论意见:
如果这有帮助的话,我在
文件中将rails 3.0.3改为rails 3.0.0,并重新进行了“捆绑安装”。现在一切都正常了。将问题推到稍后。
https://stackoverflow.com/questions/4556416
复制相似问题