Post

Ruby for windows Install

安装 Ruby 环境和 DevKit

首先到 rubyInstaller 官网下载,目前最新的版本分别是 Ruby 2.0.0-p451 和 DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe

双击打开 Ruby 进行安装,选择你所喜欢的安装位置进行安装,我选择的是 C:\Ruby200。

然后安装 DevKit ,将其解压到你所喜欢的位置,我选择的是 C:\Ruby200\devkit\ 。

DevKit 安装

1
2
3
cd C:\Ruby200\devkit\
ruby dk.rb init
ruby dk.rb install

更换 gem 的源

1
2
3
4
 gem sources -l
 gem sources --remove https://rubygems.org/
 gem sources -a https://ruby.taobao.org/
 gem update

完成之后安装 jekyll :

1
gem install jekyll

安装rdiscount,这个是用来解析Markdown标记的解析包。

1
gem install rdiscount

参考链接

https://blog.segmentfault.com/skyinlayer/1190000000406011

https://blog.jsfor.com/skill/2013/09/07/jekyll-local-structures-notes/

This post is licensed under CC BY 4.0 by the author.