jekyll - 在 win7 中运行 jekyll --server 失败

标签 jekyll pygments

当我运行 jekyll --server 时,它构建失败,并显示:

[2013-01-10 15:34:52] regeneration: 1 files changed
Liquid Exception: Failed to get header. in 2013-01-05-vim.markdown
C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:357: in rescue in get_header' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:338:<br/> inget_header' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:235:
in block in mentos'<br/> C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:intimeout'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:209:
...

我使用 pygments 来突出显示我的代码..

帮帮我!!

最佳答案

检查您的 python 版本是否为 2.X。 pygments.rb gem 不支持 Python 3。

关于jekyll - 在 win7 中运行 jekyll --server 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14253116/

相关文章:

css - Markdown 无法使用 Jekyll 正确呈现(尽管我怀疑 CSS 是罪魁祸首)

pagination - Jekyll 将博客分页为子目录

syntax-highlighting - 如何扩展 pygments.lexers.shell 的关键字列表

python - Pygments 的语法突出显示因 Liquid 模板字符串错误而失败

python - 突出显示一堆单词?

python - 用于打印输出的合理 python 源代码换行

latex - 如何在 LaTeX 中包含文件而不导致新页面

ruby - Jekyll/Ruby Kramdown 缺少依赖

Jekyll,将 html 嵌入为字符串

ruby - Jekyll 服务失败(Ruby 不兼容库版本)