Ruby on rails Rails 3.0.3和Polyglot Gem问题

Ruby on rails Rails 3.0.3和Polyglot Gem问题,ruby-on-rails,rubygems,gem,polyglot,Ruby On Rails,Rubygems,Gem,Polyglot,我希望你能帮助我 我有一个本地运行的rails应用程序,还上传并运行在Heroku上。一切都很好。上周,我又开始工作,遇到了一个障碍 在一天的开始,我打开终端,运行“rails”启动本地服务器。我收到了这个错误: 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:解析:在任何源bundle

我希望你能帮助我

我有一个本地运行的rails应用程序,还上传并运行在Heroku上。一切都很好。上周,我又开始工作,遇到了一个障碍

在一天的开始,我打开终端,运行“rails”启动本地服务器。我收到了这个错误:

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:解析:在任何源bundler::VersionConflict中找不到“rails=3.0.3”所需的gem“polyglot” from/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler/resolver.rb:127:incatch' 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:inresolve' from/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler/definition.rb:90:in specs' from/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler/definition.rb:135:inspecs_for' from/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler/definition.rb:124:在请求的规范中 来自/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler/environment.rb:23:inrequested_specs' 来自/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler/runtime.rb:11:安装程序' from/Library/Ruby/Gems/1.8/Gems/bundler-1.0.7/lib/bundler.rb:100:insetup' from/Users/dougnaegele/Sites/elig_check/config/boot.rb:8 来自脚本/rails:5:in'require' 来自脚本/rails:5

当我运行“宝石列表”时,我可以看到列出的Polyglot:

doug-naegeles-macbook-pro-17:elig_检查dougnaegele$gem列表

*本地宝石*

摘要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 扮演雪貂0.5.2和0.4.3 arel 2.0.6,2.0.4 authlogic 2.1.6 blythedunham-sms_on_rails 0.1.0 建筑商3.0.0,2.1.2 捆绑机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 出轨子牙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 雪貂0.11.6 gem_插件0.2.3 谷歌图表1.6.0 希罗库1.14.10,1.14.3 高端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雪貂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 马特蒂谷歌图表1.4.0 mime类型1.16 杂种1.1.5 mysql 2.8.1 针1.3.0 净scp 1.0.4,1.0.1 净sftp 2.0.5、2.0.1、1.1.1 net ssh 2.0.23、2.0.4、1.1.4 net ssh网关1.0.1、1.0.0 漂亮的生成器0.4.2 polyglot 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 红布4.2.3、4.1.1 rest客户端1.6.1 RubyOpenID2.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 西纳特拉1.1.0,1.0 SQLite3Ruby1.3.2、1.2.5、1.2.4 静态\u记录\u缓存0.2.0 龙头0.3.14 termios 0.9.4 雷神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_检查dougnaegele$gem来源 *电流源*

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

这看起来很对,这就是多语言文字的人生活的地方

当我运行“bundle install”时,我得到以下信息:

doug-naegeles-macbook-pro-17:elig_检查dougnaegele$bundle安装 正在获取的源索引 在任何源中都找不到“rails=3.0.3”所需的gem“polyglot”

有什么想法吗?我试着重新安装gem,运行“bundle install”等等。运气不好

我怀疑这->rails 3.0.3、2.3.5、2.2.2、1.2.6可能是问题所在,但我现在还不想走这条路。我有一些运行在2.3.5上的应用程序还没有为rails 3.0进行重构

提前谢谢!
道格

以上评论中的作品:

如果有帮助的话,在我的GEM文件中,我将rails 3.0.3更改为rails 3.0.0,并且 重拨“捆绑安装”。现在一切都好了。划船问题 直到后来


RVM和特定项目的宝石可能是您的救星。您也可以使用.rvmrc自动切换gemset。嗨,我是最初的询问者。如果有帮助的话,在我的GEM文件中,我将rails 3.0.3更改为rails 3.0.0,并重新命名为“bundle install”。现在一切都好了。把问题推迟到以后。谢谢。