到官网:http://rubyinstaller.org/downloads/ 下载Ruby 2.1.5安装
完成后 输入 ruby -v
下载:http://rubyinstaller.org/downloads/
解压缩到 C:/DevKit
初始化 config.yml
命令行输入:
*cd “C:\DevKit”
ruby dk.rb init
notepad config.yml*
打开的文件末尾添加
- C:\Ruby21-x64
命令行:
ruby dk.rb review
ruby dk.rb install
执行 gem install jekyll
c:\Ruby21-x64>gem install jekyll
ERROR: Could not find a valid gem ‘jekyll’ (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=
SSLv3 read server certificate B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)
需要安装curl
下载:http://curl.haxx.se/download.html
完成后执行: curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 223k 100 223k 0 0 82478 0 0:00:02 0:00:02 –:–:– 94724
将 cacert.pem 文件移动到Ruby安装目录
添加环境变量:
再次安装 , 执行 gem install jekyll
C:\Users\Administrator>gem install jekyll
Fetching: fast-stemmer-1.0.2.gem (100%)
Temporarily enhancing PATH to include DevKit…
Building native extensions. This could take a while…
Successfully installed fast-stemmer-1.0.2
Fetching: classifier-reborn-2.0.3.gem (100%)
Successfully installed classifier-reborn-2.0.3
Fetching: ffi-1.9.6-x64-mingw32.gem (100%)
Successfully installed ffi-1.9.6-x64-mingw32
Fetching: rb-inotify-0.9.5.gem (100%)
Successfully installed rb-inotify-0.9.5
Fetching: rb-fsevent-0.9.4.gem (100%)
Successfully installed rb-fsevent-0.9.4
Fetching: hitimes-1.2.2.gem (100%)
Building native extensions. This could take a while…
Successfully installed hitimes-1.2.2
Fetching: timers-4.0.1.gem (100%)
Successfully installed timers-4.0.1
Fetching: celluloid-0.16.0.gem (100%)
Successfully installed celluloid-0.16.0
Fetching: listen-2.8.5.gem (100%)
Successfully installed listen-2.8.5
Fetching: jekyll-watch-1.2.1.gem (100%)
Successfully installed jekyll-watch-1.2.1
Fetching: sass-3.4.12.gem (100%)
Successfully installed sass-3.4.12
Fetching: jekyll-sass-converter-1.3.0.gem (100%)
Successfully installed jekyll-sass-converter-1.3.0
Fetching: coffee-script-source-1.9.1.gem (100%)
Successfully installed coffee-script-source-1.9.1
Fetching: execjs-2.3.0.gem (100%)
Successfully installed execjs-2.3.0
Fetching: coffee-script-2.3.0.gem (100%)
Successfully installed coffee-script-2.3.0
Fetching: jekyll-coffeescript-1.0.1.gem (100%)
Successfully installed jekyll-coffeescript-1.0.1
Fetching: jekyll-gist-1.1.0.gem (100%)
Successfully installed jekyll-gist-1.1.0
Fetching: jekyll-paginate-1.1.0.gem (100%)
Successfully installed jekyll-paginate-1.1.0
Fetching: blankslate-2.1.2.4.gem (100%)
Successfully installed blankslate-2.1.2.4
Fetching: parslet-1.5.0.gem (100%)
Successfully installed parslet-1.5.0
Fetching: toml-0.1.2.gem (100%)
Successfully installed toml-0.1.2
Fetching: redcarpet-3.2.2.gem (100%)
Building native extensions. This could take a while…
Successfully installed redcarpet-3.2.2
Fetching: posix-spawn-0.3.10.gem (100%)
Building native extensions. This could take a while…
Successfully installed posix-spawn-0.3.10
Fetching: yajl-ruby-1.2.1.gem (100%)
Building native extensions. This could take a while…
Successfully installed yajl-ruby-1.2.1
Fetching: pygments.rb-0.6.2.gem (100%)
Successfully installed pygments.rb-0.6.2
Fetching: colorator-0.1.gem (100%)
Successfully installed colorator-0.1
Fetching: safe_yaml-1.0.4.gem (100%)
Successfully installed safe_yaml-1.0.4
Fetching: mercenary-0.3.5.gem (100%)
Successfully installed mercenary-0.3.5
Fetching: kramdown-1.5.0.gem (100%)
Successfully installed kramdown-1.5.0
Fetching: liquid-2.6.2.gem (100%)
Successfully installed liquid-2.6.2
Fetching: jekyll-2.5.3.gem (100%)
Successfully installed jekyll-2.5.3
Parsing documentation for blankslate-2.1.2.4
Installing ri documentation for blankslate-2.1.2.4
Parsing documentation for celluloid-0.16.0
Installing ri documentation for celluloid-0.16.0
Parsing documentation for classifier-reborn-2.0.3
Installing ri documentation for classifier-reborn-2.0.3
Parsing documentation for coffee-script-2.3.0
Installing ri documentation for coffee-script-2.3.0
Parsing documentation for coffee-script-source-1.9.1
Installing ri documentation for coffee-script-source-1.9.1
Parsing documentation for colorator-0.1
Installing ri documentation for colorator-0.1
Parsing documentation for execjs-2.3.0
Installing ri documentation for execjs-2.3.0
Parsing documentation for fast-stemmer-1.0.2
Installing ri documentation for fast-stemmer-1.0.2
Parsing documentation for ffi-1.9.6-x64-mingw32
Installing ri documentation for ffi-1.9.6-x64-mingw32
Parsing documentation for hitimes-1.2.2
Installing ri documentation for hitimes-1.2.2
Parsing documentation for jekyll-2.5.3
Installing ri documentation for jekyll-2.5.3
Parsing documentation for jekyll-coffeescript-1.0.1
Installing ri documentation for jekyll-coffeescript-1.0.1
Parsing documentation for jekyll-gist-1.1.0
Installing ri documentation for jekyll-gist-1.1.0
Parsing documentation for jekyll-paginate-1.1.0
Installing ri documentation for jekyll-paginate-1.1.0
Parsing documentation for jekyll-sass-converter-1.3.0
Installing ri documentation for jekyll-sass-converter-1.3.0
Parsing documentation for jekyll-watch-1.2.1
Installing ri documentation for jekyll-watch-1.2.1
Parsing documentation for kramdown-1.5.0
Installing ri documentation for kramdown-1.5.0
Parsing documentation for liquid-2.6.2
Installing ri documentation for liquid-2.6.2
Parsing documentation for listen-2.8.5
Installing ri documentation for listen-2.8.5
Parsing documentation for mercenary-0.3.5
Installing ri documentation for mercenary-0.3.5
Parsing documentation for parslet-1.5.0
Installing ri documentation for parslet-1.5.0
Parsing documentation for posix-spawn-0.3.10
Installing ri documentation for posix-spawn-0.3.10
Parsing documentation for pygments.rb-0.6.2
Installing ri documentation for pygments.rb-0.6.2
Parsing documentation for rb-fsevent-0.9.4
Installing ri documentation for rb-fsevent-0.9.4
Parsing documentation for rb-inotify-0.9.5
Installing ri documentation for rb-inotify-0.9.5
Parsing documentation for redcarpet-3.2.2
Installing ri documentation for redcarpet-3.2.2
Parsing documentation for safe_yaml-1.0.4
Installing ri documentation for safe_yaml-1.0.4
Parsing documentation for sass-3.4.12
Installing ri documentation for sass-3.4.12
Parsing documentation for timers-4.0.1
Installing ri documentation for timers-4.0.1
Parsing documentation for toml-0.1.2
Installing ri documentation for toml-0.1.2
Parsing documentation for yajl-ruby-1.2.1
Installing ri documentation for yajl-ruby-1.2.1
Done installing documentation for blankslate, celluloid, classifier-reborn, coffee-script, coffee-sc
ript-source, colorator, execjs, fast-stemmer, ffi, hitimes, jekyll, jekyll-coffeescript, jekyll-gist
, jekyll-paginate, jekyll-sass-converter, jekyll-watch, kramdown, liquid, listen, mercenary, parslet
, posix-spawn, pygments.rb, rb-fsevent, rb-inotify, redcarpet, safe_yaml, sass, timers, toml, yajl-r
uby after 58 seconds
31 gems installed
安装完成jekyll
$ git clone https://github.com/plusjade/jekyll-bootstrap.git jekyll
Cloning into ‘jekyll’…
remote: Counting objects: 2098, done.
remote: Total 2098 (delta 0), reused 0 (delta 0)Receiving objects: 97% (2036/20
98), 652.00 KiB | 98.00 KiB/s
Receiving objects: 100% (2098/2098), 794.12 KiB | 106.00 KiB/s, done.
Resolving deltas: 100% (844/844), done.
Checking connectivity… done.
C:\jekyll>jekyll serve
Configuration file: C:/jekyll/_config.yml
Source: C:/jekyll
Destination: C:/jekyll/_site
Generating…
done.
Please add the following to your Gemfile to avoid polling for changes:
gem ‘wdm’, ‘>= 0.1.0’ if Gem.win_platform?
Auto-regeneration: enabled for ‘C:/jekyll’
Configuration file: C:/jekyll/_config.yml
Server address: http://127.0.0.1:4000/
Server running… press ctrl-c to stop.