目前我对 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。