Search code examples
jekyll

jekyll server error no such file or directory @ rb_sysopen


Operate System:windows 8.1
Jekyll version: jekyll 2.5.0
python version: 2.7.8
gem -v: 2.2.2

When I run jekyll server output:

jekyll 2.5.0 | Error:  No such file or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/kanlei.github.com/404.html

Detail

Configuration file: D:/GitHub/kanlei.github.com/_config.yml
Source: D:/GitHub/kanlei.github.com
Destination: D:/GitHub/kanlei.github.com/_site
Generating...

Error reading file D:/GitHub/kanlei.github.com/_layouts/default.html: No such file or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/kanlei.github.com/_layouts/default.html

Error reading file D:/GitHub/kanlei.github.com/_layouts/page.html: No such file or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/kanlei.github.com/_layouts/page.html

Error reading file D:/GitHub/kanlei.github.com/_layouts/post.html: No such file or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/kanlei.github.com/_layouts/post.html

Error reading file D:/GitHub/kanlei.github.com/_posts/core-samples/2011-12-29-jekyll-introduction.md: No such file or directory @ rb_sysopen - D:/GitHub/kanlei.github.com/GitHub/kanlei.github.com/_posts/core-samples/2011-12-29-jekyll-introduction.md

Solution

  • I got the same error. Seems that jekyll 2.5.0 is not compatible with all the others.

    Try running this

    gem uninstall jekyll
    
    gem install  jekyll -v 2.4.0
    

    and then build the site again

    This method worked for me