gpt4 book ai didi

ruby - Jekyll - rdiscount 丢失但已安装

转载 作者:数据小太阳 更新时间:2023-10-29 08:31:19 26 4
gpt4 key购买 nike

我的 Jekyll 网站停止生成自己。当我启动 Jekyll 时,我收到 rdiscount 的缺失依赖错误:

~/src/markcerqueira.github.com [source] jekyll serve --watch

WARN: Unresolved specs during Gem::Specification.reset:
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
listen (~> 2.7)

WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: /Users/Mark/Desktop/src/markcerqueira.github.com/_config.yml
Source: /src/markcerqueira.github.com
Destination: /src/markcerqueira.github.com/_site
Generating...
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:3: warning: already initialized constant JSON::VERSION
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/version.rb:3: warning: previous definition of VERSION was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:4: warning: already initialized constant JSON::VERSION_ARRAY
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/version.rb:4: warning: previous definition of VERSION_ARRAY was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:5: warning: already initialized constant JSON::VERSION_MAJOR
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/version.rb:5: warning: previous definition of VERSION_MAJOR was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:6: warning: already initialized constant JSON::VERSION_MINOR
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/version.rb:6: warning: previous definition of VERSION_MINOR was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/version.rb:7: warning: already initialized constant JSON::VERSION_BUILD
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/version.rb:7: warning: previous definition of VERSION_BUILD was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:99: warning: already initialized constant JSON::NaN
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/common.rb:99: warning: previous definition of NaN was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:101: warning: already initialized constant JSON::Infinity
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/common.rb:101: warning: previous definition of Infinity was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:103: warning: already initialized constant JSON::MinusInfinity
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/common.rb:103: warning: previous definition of MinusInfinity was here
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:128: warning: already initialized constant JSON::UnparserError
/Library/Ruby/Gems/2.0.0/gems/json-1.8.3/lib/json/common.rb:128: warning: previous definition of UnparserError was here

Dependency Error: Yikes! It looks like you don't have rdiscount 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 -- rdiscount' If you run into trouble,
you can find helpful resources at http://jekyllrb.com/help/!
Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_posts/2013-05-01-ant-dex-and-jars-all-over.md/#excerpt':
rdiscount
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
rdiscount

rdiscount 已安装:

~/src/markcerqueira.github.com [source] gem list rdiscount

*** LOCAL GEMS ***

rdiscount (2.1.7)

最佳答案

不确定为什么会修复它,但是运行 bundle clean 和 bundle update 解决了这个问题。

~/src/markcerqueira.github.com [source] sudo bundle clean --force
~/src/markcerqueira.github.com [source] bundle update
~/src/markcerqueira.github.com [source] jekyll serve --watch

Configuration file: /Users/Mark/Desktop/src/markcerqueira.github.com/_config.yml
Source: /src/markcerqueira.github.com
Destination: /src/markcerqueira.github.com/_site
Generating...
done.
Auto-regeneration: enabled for 'src/markcerqueira.github.com'
Configuration file: /src/markcerqueira.github.com/_config.yml
Server address: http://0.0.0.0:4000/
Server running... press ctrl-c to stop.

也许 json gem 导致了一些问题?

关于ruby - Jekyll - rdiscount 丢失但已安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32161972/

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