Jekyll从其他目录服务

时间:2019-12-23 19:03:23

标签: jekyll

我已经使用Jekyll已有一段时间了,并且运行良好!我的问题与从已移动到其他目录的文件夹中运行Jekyll有关。作为此论坛的新手,如果我的问题发布在错误的地方,我深表歉意。谢谢您的帮助!

最近,我不得不将Jekyll网站文件夹移动到计算机上的其他目录。这导致bundle exec jekyll serve无法正常工作,并导致以下错误消息:

------------------$ JEKYLL_ENV=production bundle exec jekyll build
bundler: failed to load command: jekyll (/usr/local/lib/ruby/gems/2.6.0/bin/jekyll)
LoadError: dlopen(/usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/digest/sha1.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/digest/sha1.bundle
  Reason: image not found - /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/digest/sha1.bundle
  /Users/nagy/.gem/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:2:in `require'
  /Users/nagy/.gem/ruby/2.6.0/gems/sass-3.7.4/lib/sass/engine.rb:2:in `<top (required)>'
  /Users/nagy/.gem/ruby/2.6.0/gems/sass-3.7.4/lib/sass.rb:99:in `require'
  /Users/nagy/.gem/ruby/2.6.0/gems/sass-3.7.4/lib/sass.rb:99:in `<top (required)>'
  /Users/nagy/.gem/ruby/2.6.0/gems/jekyll-sass-converter-1.5.2/lib/jekyll/converters/scss.rb:3:in `require'
  /Users/nagy/.gem/ruby/2.6.0/gems/jekyll-sass-converter-1.5.2/lib/jekyll/converters/scss.rb:3:in `<top (required)>'
  /Users/nagy/.gem/ruby/2.6.0/gems/jekyll-sass-converter-1.5.2/lib/jekyll-sass-converter.rb:4:in `require'
  /Users/nagy/.gem/ruby/2.6.0/gems/jekyll-sass-converter-1.5.2/lib/jekyll-sass-converter.rb:4:in `<top (required)>'
  /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.6/lib/jekyll.rb:200:in `require'
  /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.6/lib/jekyll.rb:200:in `<top (required)>'
  /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.6/exe/jekyll:8:in `require'
  /usr/local/lib/ruby/gems/2.6.0/gems/jekyll-3.8.6/exe/jekyll:8:in `<top (required)>'
  /usr/local/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load'
  /usr/local/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<top (required)>'

除了目录更改外,其他所有内容在操作系统上均保持不变。我想知道是否有人可以指出我正确的方向?

谢谢!

0 个答案:

没有答案