当我运行 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: inrescue in get_header' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:338:<br/> in
get_header' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:235:
inblock in mentos'<br/> C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in
timeout'
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/