ruby complains about a package being not installed which actually is installed

frans asked:

This question might be very unprofessional but I’m very not into Ruby and I have no clue where to start..

I used to run Jekyll which runs asciidoctor to render html pages.

After a Fedora update unfortunately I just get the message

$ jekyll serve
Conversion error: Jekyll::Converters::AsciiDocConverter encountered an error while converting '<some file>':
                  asciidoctor: FAILED: required gem 'pygments.rb' is not installed. Processing aborted.

I tried to install pygments.rb (as current user and/or as root) this way:

gem install pygments.rb

But it’s already installed. When I remove it (in order to reinstall it) I get a hint:

$ gem uninstall pygments.rb

You have requested to uninstall the gem:

When I then try to run Jekyll/asciidoctor the message looks different:

$ jekyll serve
/usr/share/rubygems/rubygems/dependency.rb:298:in `to_specs': Could not find 'pygments.rb' (~> 0.6.0) among 72 total gem(s) (Gem::LoadError)
    from /usr/share/rubygems/rubygems/specification.rb:1295:in `block in activate_dependencies'
    from /usr/share/rubygems/rubygems/specification.rb:1284:in `each'
    from /usr/share/rubygems/rubygems/specification.rb:1284:in `activate_dependencies'
    from /usr/share/rubygems/rubygems/specification.rb:1266:in `activate'
    from /usr/share/rubygems/rubygems/core_ext/kernel_gem.rb:54:in `gem'
    from /usr/local/bin/jekyll:22:in `<main>'

So in this case Jekyll seems to miss pygments.rb while in the other case (when pygments.rb is installed) it looks like asciidoctor is complaining.

Can you give me a hint where I should start to investigate?

My answer:

Make sure you have the python-pygments package installed, e.g.

yum install python-pygments

The gem is only a wrapper for it.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.