使用Jekyll new命令时出错

时间:2014-01-04 04:54:36

标签: jekyll

我使用这个命令:

jekyll new blog

......出现了这个错误:

WARNING: Could not read configuration. Using defaults (and options).
    No such file or directory - new/_config.yml
Building site: new -> blog
/var/lib/gems/1.8/gems/jekyll-0.12.1/bin/../lib/jekyll/site.rb:129:in `chdir': No such file or directory - /usr/local/bin/new/ (Errno::ENOENT)
    from /var/lib/gems/1.8/gems/jekyll-0.12.1/bin/../lib/jekyll/site.rb:129:in `read_directories'
    from /var/lib/gems/1.8/gems/jekyll-0.12.1/bin/../lib/jekyll/site.rb:101:in `read'
    from /var/lib/gems/1.8/gems/jekyll-0.12.1/bin/../lib/jekyll/site.rb:39:in `process'
    from /var/lib/gems/1.8/gems/jekyll-0.12.1/bin/jekyll:264
    from /usr/local/bin/jekyll:19:in `load'
    from /usr/local/bin/jekyll:19

我正在使用Ubuntu。

Ruby Gem Environment是:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.15
  - RUBY VERSION: 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.8
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.8
     - /home/wangxingyang/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

似乎jekyll不支持新命令。

如何使用新命令初始化一个项目?

1 个答案:

答案 0 :(得分:0)

似乎缺少$ path变量。卸载并重新安装jekyll可以解决您的问题。