Windows上的Jekyll:Pygments无法正常工作 [英] Jekyll on Windows: Pygments not working

查看:140
本文介绍了Windows上的Jekyll:Pygments无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我始终使用RC之前,我已更新到最新的JekyllBuild(1.0.3).更新代码解析后(使用Pygments)不再起作用.我总是收到以下错误:

I updated to the latest JekyllBuild (1.0.3) before I always used the RC. After updating the parsing of codes (with Pygments) doesn't work anymore. I always get the following error:

C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:162: warning: cannot close fd before spawn
←[31m  Liquid Exception: No such file or directory - /bin/sh in 2012-01-17-test-post.md←[0m

有人也遇到过这个问题吗?

Did anyone also ran into this problem?

我对红宝石一无所知,所以我不能自己调试它:(

I have no clue about ruby, so I can not debug this myself :(

推荐答案

我遇到了同样的问题.似乎Pygments.rb 0.5.1中存在问题.通过回滚到Pygments 0.5.0,错误消失了.

I had the same issue. Seems there's a problem in Pygments.rb 0.5.1. By rolling back to Pygments 0.5.0 the error disappeared.

gem uninstall pygments.rb --version ">0.5.0"
gem install pygments.rb --version "=0.5.0"

希望这会有所帮助.

这篇关于Windows上的Jekyll:Pygments无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆