imathis / octopress

Octopress is an obsessively designed framework for Jekyll blogging. It’s easy to configure and easy to deploy. Sweet huh?

Home Page:http://github.com/imathis/octopress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rake generate error:Yikes! It looks like you don't have jekyll-coffeescript or one of its dependencies installed.

jakoo opened this issue · comments

commented

This error came out after I used "rake generate". Adding gem 'json' to Gemfile doesn't help.

$ rake generate
## Generating Site with Jekyll
    write source/stylesheets/screen.css
  Dependency Error:  Yikes! It looks like you don't have jekyll-coffeescript or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- json/pure' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! 
/home/username/.gem/ruby/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:56:in `rescue in block in gracefully_require': jekyll-coffeescript (Jekyll::Errors::MissingDependencyException)
    from /home/username/.gem/ruby/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:45:in `block in gracefully_require'
    from /home/username/.gem/ruby/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:44:in `each'
    from /home/username/.gem/ruby/gems/jekyll-2.5.3/lib/jekyll/deprecator.rb:44:in `gracefully_require'
    from /home/username/.gem/ruby/gems/jekyll-2.5.3/lib/jekyll.rb:166:in `<top (required)>'
    from /home/username/.gem/ruby/gems/jekyll-2.5.3/bin/jekyll:6:in `require'
    from /home/username/.gem/ruby/gems/jekyll-2.5.3/bin/jekyll:6:in `<top (required)>'
    from /home/username/bin/jekyll:23:in `load'
    from /home/username/bin/jekyll:23:in `<main>'
$ bundle show jekyll-coffeescript
/home/username/.gem/ruby/gems/jekyll-coffeescript-1.0.1

I'm using fedora20 + zsh. Anyone know how to solve this problem? Thanks in advance.

Add gem 'json_pure' in the Gemfile, can resolve this issue.

Got the same problem with F22 and @erizhang solution solved it. Thanks.

@erizhang solved it for me too - thanks