首先,我是 Ruby 新手并使用 localhost。
我正在使用:Windows 8 Pro,Ruby is installed to C:\Ruby200
,Ruby Devkit is installed to C:\RubyDEV
,config.yml
也正确配置到正确的目录。
宝石规格似乎存储在C:\username\.gem
最后,Jekyll gem
根据命令提示符完美安装。PATH
还设置了正确的 bin。
jekyll --server
运行时说去'localhost:4000',但似乎没有完美设置。它最初在尝试访问时给了我一个 Forbidden 错误/
,但现在它似乎根本不想加载。
我查阅了一些教程。
- http://www.testically.org/2012/02/02/installing-jekyll-and-ruby-on-windows/
- http://zolomon.com/tutorial/2012/02/23/setting-up-jekyll-on-windows-7/
- http://mahoney.eu/2011/12/12/installing-jekyll-on-windows/#.UVfxGle_Owg
- http://www.madhur.co.in/blog/2011/09/01/runningjekyllwindows.html
我没有安装任何额外的依赖项,根据我所听到的,这似乎是可选的,以替换 Textile 等。
我不知道我做错了什么。
任何帮助是极大的赞赏。
切换到 1.9.3 后的最新错误
C:\RubyDEV>jekyll --server
WARNING: Could not read configuration. Using defaults (and options).
No such file or directory - C:/RubyDEV/_config.yml
Building site: C:/RubyDEV -> C:/RubyDEV/_site
C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1371:in `initialize': Permission denied -
C:/RubyDEV/_site/bin/bashbug (Errno::EACCES)
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1371:in `open'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1371:in `block in copy_file'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1370:in `open'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1370:in `copy_file'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:477:in `copy_file'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:396:in `block in cp'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1515:in `block in fu_each_sr
c_dest'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1531:in `fu_each_src_dest0'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:1513:in `fu_each_src_dest'
from C:/Ruby193/lib/ruby/1.9.1/fileutils.rb:395:in `cp'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/static
_file.rb:58:in `write'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.r
b:256:in `block in write'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.r
b:255:in `each'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.r
b:255:in `write'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/lib/jekyll/site.r
b:43:in `process'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-0.12.1/bin/jekyll:264:in
`<top (required)>'
from C:/Ruby193/bin/jekyll:23:in `load'
from C:/Ruby193/bin/jekyll:23:in `<main>'
C:\RubyDEV>