ruby 安装库时出现的一些问题

 在使用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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值