I update ruby ​​gems and now I get parse tree errors and fatigue warnings everywhere!

Shortly speaking:

NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /opt/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/gem_dependency.rb:275:in `==': undefined method `name' for "ParseTree":String (NoMethodError)

using

ruby 1.8.7
rails 2.3.8
rubygems 1.8.5

what should I do?

I tried to delete the rubygems folder and perform a clean installation of rubygems ... but the above error code remains.

+5
source share
2 answers

In rubigems, there were many structural changes that took many by surprise. He introduced incompatibility issues with a number of common applications and frameworks.

You may need to revert to the rubygems version that works with your system, for example 1.6.0:

gem update --system 1.6.0

, slimgems, 1,3,7 , .

+9

d:\workspace\dongxf\projects\ruby ​​\ arbref > s D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb: 183: in stub_source_index170': uninitialized constant Gem::SourceIndex (NameError) from D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:303:in stub_rubygems '        D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb: 246: in replace_entrypoints' from D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/runtime.rb:14:in setup '        D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler.rb: 110: in setup' from D:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/setup.rb:7:in '        D:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb: 110: in require' from D:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:110:in rescue in require '        D:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb: 35: in require' from d:/workspace/dongxf/projects/ruby/arbref/config/boot.rb:6:in '        D:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb: 45: in require' from D:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in require '        script/rails: 5: in `'

d:\workspace\dongxf\projects\ruby ​​\ arbref > gem : bundler-1.3.2.gem(100%) -1.3.2 ri bundler-1.3.2 darkfish bundler-1.3.2 : bundler

d:\workspace\dongxf\projects\ruby ​​\ arbref > s = > Thin

enter image description here

0

All Articles