新手问题 Jekyll 安装过程中的问题求解

sl_nevergiveup · 2013年03月11日 · 最后由 mingway_hu 回复于 2015年01月13日 · 7849 次阅读

目前我对 Ruby 知之甚少,但是我想体验一下使用 Jekyll 写静态 Blog 的感觉,安装过程中遇到了如下问题: 通过 gem install jekyll 安装成功以后,我运行了下: jekyll -v 输出如下错误信息:

C:\Users\SL>jekyll -v
d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- yajl/2.0/yajl (LoadError)
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from d:/Ruby200/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib/yajl/yajl.rb:2:in `<top (required)>'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
        from d:/Ruby200/lib/ruby/gems/2.0.0/gems/yajl-ruby-1.1.0-x86-mingw32/lib/yajl.rb:1:in `<top (required)>'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
        from d:/Ruby200/lib/ruby/gems/2.0.0/gems/pygments.rb-0.3.7/lib/pygments/popen.rb:3:in `<top (required)>'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:in `require'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:106:in `require'
        from d:/Ruby200/lib/ruby/gems/2.0.0/gems/pygments.rb-0.3.7/lib/pygments.rb:1:in `<top (required)>'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from d:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-0.12.1/lib/jekyll.rb:27:in `<top (required)>'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from d:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:58:in `require'
        from d:/Ruby200/lib/ruby/gems/2.0.0/gems/jekyll-0.12.1/bin/jekyll:20:in `<top (required)>'
        from d:/Ruby200/bin/jekyll:23:in `load'
        from d:/Ruby200/bin/jekyll:23:in `<main>'

然后我又安装了 yaij-ruby:

C:\Users\SL>gem install yajl-ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed yajl-ruby-1.1.0
Parsing documentation for yajl-ruby-1.1.0
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/yajl/yajl.so, skipping
Done installing documentation for yajl-ruby (0 sec).
1 gem installed

Jekyll 错误依然存在,希望高手能指点一下,我是在 Win7 上安装的 ruby2.0.0-p0。

木有人说话……

windows 下玩 ruby 有各种神奇的问题,不想浪费时间还是放弃吧

http://www.madhur.co.in/blog/2011/09/01/runningjekyllwindows.html 不知道有没有帮助,手头没有 windows 无法测试

刚我也遇到了~先安装rouge语法高亮的包gem install rouge,然后在_config.yml 文件里添加highlighter: rouge,就能解决。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号