Windows8 环境下的 jekyll 本地搭建

一、配置ruby环境

Jekyll使用Ruby编写的,所以要先用ruby来搭建jekyll的本地环境。

去官网 http://rubyinstaller.org/downloads/ 下载Ruby ,我下载的是Ruby 2.0.0-p451 (x64)

安装的时候三个都勾选上,其中 “Add Ruby executables to your PATH”勾选后会自动添加系统环境变量。

我安装到了“D:\Ruby200-x64”下。

二、安装devkit

去官网 http://rubyinstaller.org/downloads/ 下载devkit,我下载的是DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe。

下载完双击,我把它解压到了 D:\devkit下。

打开cmd,切换到D:\devkit下,执行如下图的命令:



三、安装jekyll

打开 D:\devkit 下的 msys.bat ,输入 gem install jekyll,如下:

Zhichao@hezhichao ~
$ gem install jekyll
Fetching: liquid-2.5.5.gem (100%)
Successfully installed liquid-2.5.5
Fetching: fast-stemmer-1.0.2.gem (100%)
Building native extensions.  This could take a while...
Successfully installed fast-stemmer-1.0.2
Fetching: classifier-1.3.4.gem (100%)
Successfully installed classifier-1.3.4
Fetching: rb-fsevent-0.9.4.gem (100%)
Successfully installed rb-fsevent-0.9.4
Fetching: ffi-1.9.3-x64-mingw32.gem (100%)
Successfully installed ffi-1.9.3-x64-mingw32
Fetching: rb-inotify-0.9.3.gem (100%)
Successfully installed rb-inotify-0.9.3
Fetching: rb-kqueue-0.2.2.gem (100%)
Successfully installed rb-kqueue-0.2.2
Fetching: listen-1.3.1.gem (100%)
Successfully installed listen-1.3.1
Fetching: maruku-0.7.1.gem (100%)
Successfully installed maruku-0.7.1
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed yajl-ruby-1.1.0
Fetching: posix-spawn-0.3.8.gem (100%)
Building native extensions.  This could take a while...
Successfully installed posix-spawn-0.3.8
Fetching: pygments.rb-0.5.4.gem (100%)
Successfully installed pygments.rb-0.5.4
Fetching: highline-1.6.20.gem (100%)
Successfully installed highline-1.6.20
Fetching: commander-4.1.6.gem (100%)
Successfully installed commander-4.1.6
Fetching: safe_yaml-0.9.7.gem (100%)
Successfully installed safe_yaml-0.9.7
Fetching: colorator-0.1.gem (100%)
Successfully installed colorator-0.1
Fetching: redcarpet-2.3.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed redcarpet-2.3.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.1.gem (100%)
Successfully installed toml-0.1.1
Fetching: jekyll-1.4.3.gem (100%)
Successfully installed jekyll-1.4.3
Parsing documentation for liquid-2.5.5
Installing ri documentation for liquid-2.5.5
Parsing documentation for fast-stemmer-1.0.2
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/stemmer.so, skipping
Installing ri documentation for fast-stemmer-1.0.2
Parsing documentation for classifier-1.3.4
Installing ri documentation for classifier-1.3.4
Parsing documentation for rb-fsevent-0.9.4
Installing ri documentation for rb-fsevent-0.9.4
Parsing documentation for ffi-1.9.3-x64-mingw32
Installing ri documentation for ffi-1.9.3-x64-mingw32
Parsing documentation for rb-inotify-0.9.3
Installing ri documentation for rb-inotify-0.9.3
Parsing documentation for rb-kqueue-0.2.2
Installing ri documentation for rb-kqueue-0.2.2
Parsing documentation for listen-1.3.1
Installing ri documentation for listen-1.3.1
Parsing documentation for maruku-0.7.1
Installing ri documentation for maruku-0.7.1
Parsing documentation for yajl-ruby-1.1.0
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/yajl/yajl.so, skipping

Installing ri documentation for yajl-ruby-1.1.0
Parsing documentation for posix-spawn-0.3.8
Installing ri documentation for posix-spawn-0.3.8
Parsing documentation for pygments.rb-0.5.4
Installing ri documentation for pygments.rb-0.5.4
Parsing documentation for highline-1.6.20
Installing ri documentation for highline-1.6.20
Parsing documentation for commander-4.1.6
Installing ri documentation for commander-4.1.6
Parsing documentation for safe_yaml-0.9.7
Installing ri documentation for safe_yaml-0.9.7
Parsing documentation for colorator-0.1
Installing ri documentation for colorator-0.1
Parsing documentation for redcarpet-2.3.0
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/redcarpet.so, skipping

Installing ri documentation for redcarpet-2.3.0
Parsing documentation for blankslate-2.1.2.4
Installing ri documentation for blankslate-2.1.2.4
Parsing documentation for parslet-1.5.0
Installing ri documentation for parslet-1.5.0
Parsing documentation for toml-0.1.1
Installing ri documentation for toml-0.1.1
Parsing documentation for jekyll-1.4.3
Installing ri documentation for jekyll-1.4.3
21 gems installed

Zhichao@hezhichao ~
$ jekyll -v
jekyll 1.4.3



你可能感兴趣的:(github,jekyll)