running jekyll on windows

update(26/06/14):this article is bit outdated and no longer deemed official instuctions to get jekyll runnint on Windows.please see this article for more updated and authoritative source of instructions.
jekyll can also be made to run on windows operating system.this prefer when i am working on my office laptop which has windows 7 installed on it.
Following packages are required to setup Jekyll on windows:

  • Ruby & Ruby Development:Can be installed from here
  • Jekyll
  • Python:I strongly recommend using 2.7.5 opposed to version 3.I used the portable version available here
  • Pygments
    1 install the Ruby from http://rubyinstaller.org/downloads/ and install it to path such as C:\ruby
    2 Download "DEVELOPMENT KIT" installer that matches the windows architecture and the Ruby version just installed. For example,DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe is for 64-bit Windows with Ruby 2.0.0 X64 with Ruby 2.0.0 X64.install the Ruby development kit from the same location above and extract it to path such as c:\devkit.
    Run the following commands
    ruby dk.rb init
    to generate the config.yml file to be used later in this step.
    3 Edit the generated config.yml file to include installed Rubies.For example,in our case,it will look like this
# this configuration file contains the absolute path locations of all 
# installed Rubies to be enhanced to work with the DevKit. This config 
# file is generated by the 'ruby dk.rb init' step and may be modified 
# before running the 'ruby dk.rb install' step.To include any installed 
# Rubies that were not automagically discovered,simply add a line below 
# the triple hyphens with the absolute path to the Ruby root directory.
# 
# example:
# 
# ---
#- C:/ruby19trunk
---
- C:/ruby

4 运行一下命令安装到Devkit。这一步将一个operation_system.rb文件安装(或更新)到实现RubyGems所需的相关目录中
ruby dk.rb install
5 使用以下命令安装Jekyll
gem install jekyll
6 现在,你可以开始使用Jekyll了。如果您还需要使用pygments进行代码高亮显示,请按照其他步骤操作。
7 现在我们需要安装easy_install。这可以从http:/pypi.python.org/pypi/distribute安装 下载distribute_setup.py并在Python中运行以下命令
python distribute_setup.py
8 现在安装pygments,只需运行这个命令:
请注意,强烈建议使用Pygmengs版本0.5.0.Pygmnents的最新版本与Jekyll有问题。
easy_install Pygments
9 开始Jekyll
遵循官方Jekyll快速入门指南中的命令,一个新的Jekyll博客应该能够在localhost:4000上创建和浏览

jekyll new myblog
cd myblog
jekyll serve

现在浏览到http://localhost:4000

故障排除

Liquid error descriptor

如果您使用Python版本>3而不是2.75,则可能会出现此错误

Liquid error:Bad file descriptor
TypeError:Can't convert 'bytes' object to str impli

你可能感兴趣的:(running jekyll on windows)