问题
when i run jekyll --server,it built failed ,and display this :
[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:get_header' C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:235:
in
inblock in mentos'timeout'
C:/Ruby193/lib/ruby/1.9.1/timeout.rb:68:in
C:/Ruby193/lib/ruby/gems/1.9.1/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:209:
...
i use pygments to highlight my code..
help me !!
回答1:
Check if your python version is 2.X. Python 3 is unsupported by the pygments.rb gem.
回答2:
This is giving me headache...: since 2011 it seems that "pygments.rb" is reported to work with Python 3 as per this Jekyll installation guide for windows mentioned in the official Jekyll installation docs "http://www.madhur.co.in/blog/2011/09/01/runningjekyllwindows.html" (which just to blow in more confusion today got an expired domain...)
So yea, how do you install Jekyll, which by the way is described as a Ruby static website generator on its github page - when it:
- requires Python while being a Ruby thing
- recommends Python 3 leaving you alone to figure out that it only works with Python 2
- doesn't say a thing about it after 2 years
Well you simply don't.
来源:https://stackoverflow.com/questions/14253116/run-jekyll-server-failed-in-win7