在使用ruby安装jekyll时出现了一个错误
ERROR: Error installing jekyll:
The 'fast-stemmer' native gem requires installed build tools.
错误原因是因为少安装了一个工具的插件,
解决方法:
到 http://rubyinstaller.org/downloads/ 去下载 development kit
安装之后, 将bin配置到环境变量中 进入kit安装目录 使用如下命令
D:\kit>ruby dk.rb init
[INFO] found RubyInstaller v2.1.5 at d:/Ruby21
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
D:\kit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.
d:/Ruby21
D:\kit>ruby dk.rb install
[INFO] Installing 'd:/Ruby21/lib/ruby/site_ruby/2.1.0/rubygems/defaults/operating_system.rb'
[INFO] Installing 'd:/Ruby21/lib/ruby/site_ruby/devkit.rb'
D:\kit>cd D:\rubywork
D:\rubywork>gem install jekyll
之后安装 jekyll没有出现问题
参考 : http://flatshaded.com/2013/05/installing-jekyll-on-windows/