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

Jekyll fails to get installed on ruby 2.2.2 #3909

Closed
collegeimprovements opened this Issue Aug 12, 2015 · 6 comments

Comments

Projects
None yet
3 participants
@collegeimprovements

collegeimprovements commented Aug 12, 2015

It's because of pygments gem and I've raised an issue for the same here.

Just to make sure that there is the only problem out there, I'm raising this issue here at jekyll, too.

@envygeeks

This comment has been minimized.

Contributor

envygeeks commented Aug 12, 2015

Here on our systems we have no problem with Ruby 2.2.2 and Pygments with Jekyll 3.0, not only does it power my website but the Docker image that has those powers dozens of other sites all with syntax highlighting explicitly done through Pygments.

@envygeeks

This comment has been minimized.

Contributor

envygeeks commented Aug 12, 2015

Can you provide more information about your site?

@collegeimprovements

This comment has been minimized.

collegeimprovements commented Aug 12, 2015

I've installed ruby-2.2.2 and installed a lot of gems including rails and sequel and others. However when I tried to install jekyll it failed to get installed and threw the following error.

gem install jekyll                                                                         [20:57:41]
ERROR:  Error installing jekyll:
    invalid gem: package is corrupt, exception while verifying: undefined method `size' for nil:NilClass (NoMethodError) in /Users/arpit/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/cache/pygments.rb-0.6.3.gem

Then I explicitly tried to install pygments gem but the error persists. Hence raised the issue.

@envygeeks

This comment has been minimized.

Contributor

envygeeks commented Aug 12, 2015

That's not a problem with Jekyll that's a problem with RubyGems (literally) clear your gem cache and then try again, either the download was modified by a middle-man in route and failed the check or your download was cut short (for various reasons).

Try: find /Users/arpit/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/cache -type f -iname \*.gem -delete

@envygeeks

This comment has been minimized.

Contributor

envygeeks commented Aug 12, 2015

To add, it's not a problem with Pygments either.

@envygeeks envygeeks added wont-fix and removed Pending Comments labels Aug 12, 2015

@collegeimprovements

This comment has been minimized.

collegeimprovements commented Aug 13, 2015

It works. My bad. But I learned something new from your solution. I didn't know about gem's cache. @envygeeks Thanks a lot 👍

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.