为什么在使用jekyll静态博客生成器时,ruby不会在ubuntu64下识别Haml?

我一直在尝试,相当不成功,在Ubuntu 64位上运行henrik的jekyll静态博客生成器的分支。 我似乎无法弄清楚这一点,我尝试了一堆不同的东西。 最初我发布了这个在stackoverflow,但这可能是更好的地方。

我的机器的基础统计:Ubuntu 9.04,64位,ruby1.8.7(2008-08-11 patchlevel 72)[x86_64-linux],rubygems 1.3.1。

当我尝试构build网站时,会发生以下情况:

 $ jekyll --pygments  
从./_config.yml进行configuration  
使用Sass进行CSS生成  
你必须先安装哈姆gem  
使用rdiscount进行Markdown  
build筑工地:。  - > ./_site  
 /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/core_ext.rb:27:in`method_missing':未定义的方法'header'for#,page =#  
 .....切.....  
 (NoMethodError)
   from(haml):9:在`render'
   from /home/chris/.gem/gems/haml-2.2.3/lib/haml/engine.rb:167:in'render'  
   from /home/chris/.gem/gems/haml-2.2.3/lib/haml/engine.rb:167:in'instance_eval'  
   from /home/chris/.gem/gems/haml-2.2.3/lib/haml/engine.rb:167:in'render'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:72:in'render_haml_in_context'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:105:in'do_layout'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/post.rb:226:in'render'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:172:in'read_posts'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:171:in'each'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:171:in'read_posts'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:210:in'transform_pages'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:126:in'process'  
   from /home/chris/.gem/gems/henrik-jekyll-0.5.2/bin/jekyll:135  
   from /home/chris/.gem/bin/jekyll:19:in`load'  
   from /home/chris/.gem/bin/jekyll:19

我在ClosedStruct的左边添加了空格以提高可视性 – 抱歉我的内嵌html /格式不完美。 我也删掉了一些只是数据的中间文本。

 $ gem list

 ***本地GEMS ***

 actionmailer(2.3.4)
 actionpack(2.3.4)
 activerecord(2.3.4)
主动资源(2.3.4)
主动支持(2.3.4)
分类器(1.3.1)
 directory_watcher(1.2.0)
 haml(2.2.3)
 haml-edge(2.3.27)
 henrik-jekyll(0.5.2)
液体(2.0.0)
 maruku(0.6.0)
 open4(0.9.6)
机架(1.0.0)
铁轨(2.3.4)
耙(0.8.7)
 rdiscount(1.3.5)
红布(4.2.2)
词干(1.0.1)
语法(1.0.0)

一些显示pathvalidation:

 $ echo $ PATH
 /home/chris/.gem/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

 $哈姆  
 /home/chris/.gem/bin/haml  
 $这jekyll  
 /home/chris/.gem/bin/jekyll  

你在你的叫做'header'的模板中调用了一些不符合可用方法的东西。 修复你的模板,一切都会好的。