Ruby版本:1.9.2p290
gem版本:1.8.10
使用rvm安装的Ruby。
然后使用gem安装jekyll,以及redcarpet
运行jekyll是输出错误log如下:
Configuration from /Users/thcode/Code/
thcode.github.com/_config.ymlBuilding site: /Users/thcode/Code/
thcode.github.com -> /Users/thcode/Code/
thcode.github.com/_site/Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/converters/markdown.rb:91:in `convert': undefined method `new' for Redcarpet:Module (NoMethodError)
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/convertible.rb:46:in `transform'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/convertible.rb:84:in `do_layout'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/post.rb:189:in `render'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:193:in `block in render'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:192:in `each'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:192:in `render'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll/site.rb:40:in `process'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:250:in `<top (required)>'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `load'
from /Users/thcode/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `<main>'
这个问题困扰我好久,有谁有解决方案吗?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/23854
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.