找不到Jekyll博客的Bundler gem

时间:2017-01-24 02:37:29

标签: ruby jekyll bundler

我尝试设置新的Jekyll网站,并在使用jekyll new testSite创建新网站后遇到问题。

我收到错误说:

New jekyll site installed in /Users/myPath.
  Dependency Error: Yikes! It looks like you don't have bundler 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 -- bundler' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/!
jekyll 3.3.1 | Error:  bundler

我已经使用gem install bundler安装了捆绑包,但它似乎无法找到它。

bundler -v提供Bundler version 1.14.2

jekyll -v提供jekyll 3.3.1

提前致谢!

2 个答案:

答案 0 :(得分:1)

鉴于你已经正确安装了ruby,jekyll和blunder。在testSite文件夹内运行:

bundle

bundle(或bundle install,cf。bundler doc)将安装Gemfile中指定的依赖项。

然后运行您的新网站:

bundle exec jekyll s

答案 1 :(得分:0)

以下命令对我有用,在ubuntu中。

sudo apt install ruby-bundler