gpt4 book ai didi

ruby - 在 ubuntu 14.04 上运行 jekyll 时出错

转载 作者:行者123 更新时间:2023-12-04 19:02:01 25 4
gpt4 key购买 nike

在 ubuntu 14.04 上安装 jekyll 之后,遵循 http://michaelchelen.net/81fa/install-jekyll-2-ubuntu-14-04/

它显示了一些警告,但它表示安装成功。

然后当我尝试使用命令 jekyll -v 检查版本时

它表明了这一点

WARN: Unresolved specs during Gem::Specification.reset: listen (< 3.1, ~> 3.0)

WARN: Clearing out unresolved specs. Please report a bug if this causes problems. /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:35:in block in setup': You have already activated colorator 1.1.0, but your Gemfile requires colorator 0.1. Prependingbundle execto your command may solve this. (Gem::LoadError)
from /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in
map' from /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:20:in setup'
from /home/ant-ed/.gem/ruby/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:95:in
setup' from /home/ant-ed/.gem/ruby/2.3.0/gems/jekyll-3.2.0/lib/jekyll/plugin_manager.rb:36:in require_from_bundler'
from /home/ant-ed/.gem/ruby/2.3.0/gems/jekyll-3.2.0/exe/jekyll:9:in
' from /home/ant-ed/.gem/ruby/2.3.0/bin/jekyll:22:in load'
from /home/ant-ed/.gem/ruby/2.3.0/bin/jekyll:22:in
'



我应该卸载 jekyll 并尝试重新安装吗?

最佳答案

切换到站点所在目录,运行:

bundle install
bundle exec jekyll -v

这个 bundle exec前缀将加载 Gemfile 中指定的正确 gemset .

关于ruby - 在 ubuntu 14.04 上运行 jekyll 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38677296/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com