美文网首页
jekyll在ruby下报错

jekyll在ruby下报错

作者: 前端妹子ice | 来源:发表于2018-03-26 17:29 被阅读83次

运行jekyll serve

问题一

/usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- bundler (LoadError)
    from /usr/local/Cellar/ruby/2.4.2_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/lib/ruby/gems/2.4.0/gems/jekyll-3.7.3/lib/jekyll/plugin_manager.rb:48:in `require_from_bundler'
    from /usr/local/lib/ruby/gems/2.4.0/gems/jekyll-3.7.3/exe/jekyll:11:in `<top (required)>'
    from /usr/local/bin/jekyll:23:in `load'
    from /usr/local/bin/jekyll:23:in `<main>'
image.png

解决方法

按照缺失的包bundler

gem install bundler

问题二

你可能会遇到下面的错误信息:
Dependency Error: Yikes! It looks like you don't have pygments 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 -- pygments' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
Liquid Exception: pygments in /home/gavin/TE/_posts/2017-08-19-welcome-to-jekyll.markdown
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
pygments

解决方法

代码高亮,在_config.yml中添加“highlighter:rouge”,即可。

相关文章

  • jekyll在ruby下报错

    运行jekyll serve 问题一 解决方法 按照缺失的包bundler 问题二 你可能会遇到下面的错误信息:D...

  • sudo gem install jekyll 出错解决办法

    安装jekyll出错 原因是ruby版本过低 安装rvm报错: 原因也许在 homebrew上,下面的步骤,可以解...

  • 搭建个人博客

    ruby更新好之后, 开心地安了 jekyll 到 wenyuanma.github.io 目录下 报错 Coul...

  • Centos升级Ruby版本

    前言 在安装jekyll时,所需要的使用ruby工具进行操作,发现在线安装的Ruby版本过低,jekyll支持的版...

  • bundler: failed to load command:

    jekyll主题更改,执行bundle exec jekyll serve报错 解决方法: 在该jekyll主题下...

  • Windows上使用jekyll+github搭建免费博客

    jekyll+github搭建个人博客 (一)下载Ruby (二)安装jekyll (三)开启jekyll服务器 ...

  • git gh-pages创建博客

    一、mac安装ruby如何在Mac OS X上安装 Ruby运行环境 二、Mac下Jekyll安装http://w...

  • 笔记框架

    Jekyll ruby hexo node hugo go

  • Jekyll安装

    关于Jekyll Jekyll是一个静态站点生成器。 Requirements Ruby RubyGems GCC...

  • Jekyll文档系统

    安装Ruby环境 参考 RVM 阿里gem源站 建立Jekyll 文档系统 安装Jekyll 准备Github帐号...

网友评论

      本文标题:jekyll在ruby下报错

      本文链接:https://www.haomeiwen.com/subject/qfgrcftx.html