Search This Blog

Jun 27, 2013

How to install JekyII under windows (Github wiki page)



How to install JekyII under windows.
1.       Install Ruby 2.0.0
2.       Install Ruby DevKit for Ruby 2.0.0
Extract it to C:\devkit, enter the directory and execute below commands.
$ ruby dk.rb init
to generate the config.yml file to be used later in this Step
$ ruby dk.rb install
 This step installs (or updates) an operating_system.rb file into the relevant directory needed to implement a RubyGems
3.       Add Taobao ruby in  gem mirror list. This is because GFW blocking.
$ gem sources --remove http://gemcutter.org/
$ gem sources --remove http://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
4.       Install jekyll
$ gem install jekyll rdiscount
This might be long time, please be patient to wait for it complete. 
...
Fetching: liquid-2.5.0.gem (100%)
Successfully installed liquid-2.5.0
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-1.3.3.gem (100%)
Successfully installed classifier-1.3.3
Fetching: directory_watcher-1.4.1.gem (100%)
Successfully installed directory_watcher-1.4.1
Fetching: syntax-1.0.0.gem (100%)
Successfully installed syntax-1.0.0
Fetching: maruku-0.6.1.gem (100%)
Successfully installed maruku-0.6.1
Fetching: kramdown-1.0.2.gem (100%)
Successfully installed kramdown-1.0.2
Fetching: yajl-ruby-1.1.0-x86-mingw32.gem (100%)
Successfully installed yajl-ruby-1.1.0-x86-mingw32
Fetching: posix-spawn-0.3.6.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed posix-spawn-0.3.6
Fetching: pygments.rb-0.5.1.gem (100%)
Successfully installed pygments.rb-0.5.1
Fetching: highline-1.6.19.gem (100%)
Successfully installed highline-1.6.19
Fetching: commander-4.1.3.gem (100%)
Successfully installed commander-4.1.3
Fetching: safe_yaml-0.7.1.gem (100%)
Successfully installed safe_yaml-0.7.1
Fetching: colorator-0.1.gem (100%)
Successfully installed colorator-0.1
Fetching: jekyll-1.0.3.gem (100%)
Successfully installed jekyll-1.0.3
Parsing documentation for yajl-ruby-1.1.0-x86-mingw32
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/yajl/1.8/yajl.so, skip
ping
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/yajl/1.9/yajl.so, skip
ping
Installing ri documentation for yajl-ruby-1.1.0-x86-mingw32
Parsing documentation for posix-spawn-0.3.6
Installing ri documentation for posix-spawn-0.3.6
Parsing documentation for pygments.rb-0.5.1
Installing ri documentation for pygments.rb-0.5.1
Parsing documentation for highline-1.6.19
Installing ri documentation for highline-1.6.19
Parsing documentation for commander-4.1.3
Installing ri documentation for commander-4.1.3
Parsing documentation for safe_yaml-0.7.1
Installing ri documentation for safe_yaml-0.7.1
Parsing documentation for colorator-0.1
Installing ri documentation for colorator-0.1
Parsing documentation for jekyll-1.0.3
Installing ri documentation for jekyll-1.0.3
Fetching: rdiscount-2.1.6.gem (100%)
Building native extensions.  This could take a while...
Successfully installed rdiscount-2.1.6
Parsing documentation for rdiscount-2.1.6
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/rdiscount.so, skipping

Installing ri documentation for rdiscount-2.1.6
9 gems installed
5.       Check  Jekyll version
$ jekyll -v
jekyll 1.0.3
6.       Install RedCloth
$ gem install RedCloth
7.       Download Tom Preston-Werner Jekyll example
Extract it into your own github local directory. I changed the name to "blog"
8.       Highlight code

    9. Reference



No comments: