ruby 抱怨未安装实际已安装的软件包

ruby 抱怨未安装实际已安装的软件包

这个问题可能非常不专业,但是我对 Ruby 不太感兴趣,而且我不知道从哪里开始。

我曾经运行过用于呈现 html 页面的Jekyll程序。asciidoctor

不幸的是,在 Fedora 更新后,我只收到消息

$ 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.

我尝试通过pygments.rb以下方式安装(以当前用户和/或 root 身份):

gem install pygments.rb

但是它已经安装了。当我删除它(以便重新安装它)时,我收到一条提示:

$ gem uninstall pygments.rb

You have requested to uninstall the gem:
    pygments.rb-0.6.3

当我尝试运行 Jekyll/asciidoctor 时,消息看起来不同:

$ 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>'

因此,在这种情况下Jekyll似乎错过了,pygments.rb而在另一种情况下(pygments.rb安装时)它看起来像是asciidoctor在抱怨。

您能提示一下我应该从哪里开始调查吗?

答案1

确保已python-pygments安装该软件包,例如

yum install python-pygments

宝石只是它的包装而已。

相关内容