ERROR: Isn't a Gem::Specification (NilClass instead)

why I am getting this error? and how to fix it?

gem --version

[/usr/lib/ruby/gems/1.8/specifications/treetop-1.4.11.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/i18n-0.6.1.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/polyglot-0.3.3.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/mail-2.4.4.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/mime-types-1.19.gemspec] isn’t a
Gem::Specification (NilClass instead).
1.8.24

ajay paswan wrote in post #1080255:

why I am getting this error? and how to fix it?

gem --version

[/usr/lib/ruby/gems/1.8/specifications/treetop-1.4.11.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/i18n-0.6.1.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/polyglot-0.3.3.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/mail-2.4.4.gemspec] isn’t a
Gem::Specification (NilClass instead).
[/usr/lib/ruby/gems/1.8/specifications/mime-types-1.19.gemspec] isn’t a
Gem::Specification (NilClass instead).
1.8.24

Probably a messed installation.
What does contain the file
/usr/lib/ruby/gems/1.8/specifications/i18n-0.6.1.gemspec ? Is it a
correct Gem::Specification instance initializing code ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs