我使用 Github 页面来托管我的网站,我已经在本地机器上对其进行了测试,并且效果很好,但是当我在 Github 上推送我的网站时,出现了错误。它说
页面构建失败,出现以下错误:
无法运行 jekyll
我的_config.yml
档案
---
auto : false
lsi : false
pygments : true
permalink : none
markdown : maruku
maruku:
use_divs: true
use_tex: true
png_engine : blahtex
png_dir : images/latex/
png_url : /images/latex/
我在网上搜索过,但找不到任何有用的想法。谁能帮我?
我求助于 Github,他们给我发了日志,这是错误:Maruku:使用 div 元素的扩展语法。\nMaruku:使用 LaTeX 扩展。图片在images/latex/
.\n/var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/mathml_engines/blahtex.rb:40:in convert_to_png_blahtex': Blahtex error: empty output (RuntimeError)\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/to_html.rb:64:in
send'\n\tfrom /var/lib/ gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/to_html.rb:64:in render_png'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/ext/math/to_html.rb:120:in
to_html_equation'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/ lib/maruku/output/to_html.rb:970:in send'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:970:in
array_to_html'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:961:in each'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:961:in
array_to_html '\n\t来自 /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:956:in to_html children_to_html'\n\tfrom /var/lib/gems/1.8/gems/maruku-0.6.0/lib/maruku/output/to_html.rb:50:in
'\n\t来自 /var/lib/gems/1.8/ gems/jekyll-0.11.0/bin/../lib/jekyll/converters/markdown.rb:120:inconvert'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/convertible.rb:46:in
变换'\n\t来自 /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/convertible.rb:84:indo_layout'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/post.rb:189:in
渲染'\n\t来自 /var/lib/ gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:193:in render'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:192:in
each'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0 /bin/../lib/jekyll/site.rb:192:in render'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/../lib/jekyll/site.rb:40:in
process'\n\tfrom /var/lib/gems/1.8/gems/jekyll-0.11.0/bin/jekyll:250\n\tfrom / var/lib/gems/1.8/bin/jekyll:19:in `load'\n\tfrom /var/lib/gems/1.8/bin/jekyll:19\n"
从日志中,我们可以看到问题是 `convert_to_png_blahtex': Blahtex error: empty output (RuntimeError)。我读了 blahtex 代码,
if png.name != 'png'
maruku_error "Blahtex error: \n#{doc}"
return nil
end
但是,png文件在那里。有人遇到过这个问题吗?