Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation error: "package is corrupt, exception while verifying" #2039

Closed
Ghostwritten opened this issue Jul 4, 2020 · 6 comments
Closed

Comments

@Ghostwritten
Copy link

Ghostwritten commented Jul 4, 2020

window10 64x

 ruby -v 
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x64-mingw32]

I want to install nokogiri -v '1.11.0.rc2'

$ gem install nokogiri -v '1.11.0.rc2' --source 'https://rubygems.org/'
Fetching nokogiri-1.11.0.rc2-x64-mingw32.gem
ERROR:  Error installing nokogiri:
        invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in D:/install/Ruby27-x64/lib/ruby/gems/2.7.0/cache/nokogiri-1.11.0.rc2-x64-mingw32.gem

if I run:

$ gem install nokogiri
ERROR:  Error installing nokogiri:
        The last version of nokogiri (>= 0) to support your Ruby & RubyGems was 1.10.9. Try installing it with `gem install nokogiri -v 1.10.9`      
        nokogiri requires Ruby version >= 2.3, < 2.7.dev. The current ruby version is 2.7.1.83.

this is a bug? I can't solve the issuse ?
Do I need to rollback Ruby 2.7.0?
help!

@eccobln

This comment was marked as off-topic.

@flavorjones
Copy link
Member

Hi, sorry you're having problems, I'll try to help.

The first error message, "invalid gem: package is corrupt" is likely due to an incomplete or corrupted file downloaded (if you google for this phrase you'll see lots of hits, and this seems to be more common for larger gems -- and the Nokogiri windows gem file is quite large). Please remove your gem cache and try to re-download it.

The second error, "nokogiri requires Ruby version >= 2.3, < 2.7.dev", is because only release candidates support Ruby 2.7 precompiled on Windows. See #2029 for background and for updates.

@flavorjones flavorjones changed the title package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in D:/install/Ruby27-x64/lib/ruby/gems/2.7.0/cache/nokogiri-1.11.0.rc2-x64-mingw32.gem installation error: "package is corrupt, exception while verifying" Jul 4, 2020
@eccobln

This comment was marked as off-topic.

@flavorjones
Copy link
Member

Nokogiri v1.10.10 has been released with precompiled support for Ruby 2.7 on Windows.

@eccobln

This comment was marked as off-topic.

@eccobln

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants