杰基尔不在当地服务 - '找不到jekyll'

时间:2017-09-14 00:10:00

标签: ruby rubygems jekyll

我对ruby几乎没有经验,但一直在设法用github成功维护一个Jekyll网站。但是,由于某些未知原因,当我进入我的网站目录并运行jekyll serve时,我收到以下错误:

Could not find 'jekyll' (>= 0) among 7 total gem(s) (Gem::MissingSpecError)

以下是完整的错误消息:

/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'jekyll' (>= 0) among 7 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/amin/.gem/ruby/2.4.0:/usr/local/lib/ruby/gems/2.4.0:/usr/local/Cellar/ruby/2.4.1_1/lib/ruby/gems/2.4.0', execute `gem env` for more information
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/dependency.rb:320:in `to_spec'
from /usr/local/Cellar/ruby/2.4.1_1/lib/ruby/2.4.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /usr/local/bin/jekyll:22:in `<main>'

尝试gem env会给出这个看起来有点混乱的内容:

RubyGems Environment:
 - RUBYGEMS VERSION: 2.4.5
 - RUBY VERSION: 2.2.2 (2015-04-13 patchlevel 95) [x86_64-darwin15]
 - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.2.0
 - RUBY EXECUTABLE: /usr/local/opt/ruby/bin/ruby
 - EXECUTABLE DIRECTORY: /usr/local/bin
 - SPEC CACHE DIRECTORY: /Users/amin/.gem/specs
 - SYSTEM CONFIGURATION DIRECTORY: /usr/local/Cellar/ruby/2.2.2/etc
 - RUBYGEMS PLATFORMS:
   - ruby
   - x86_64-darwin-15
 - GEM PATHS:
   - /usr/local/lib/ruby/gems/2.2.0
   - /Users/amin/.gem/ruby/2.2.0
   - /usr/local/Cellar/ruby/2.2.2/lib/ruby/gems/2.2.0
 - GEM CONFIGURATION:
   - :update_sources => true
   - :verbose => true
   - :backtrace => false
   - :bulk_threshold => 1000
 - REMOTE SOURCES:
   - https://rubygems.org/
 - SHELL PATH:
   - /Users/amin/Dropbox/code/google-cloud-platform/google-cloud-sdk/bin
   - //anaconda/bin
   - /opt/local/bin
   - /opt/local/sbin
   - /opt/local/bin
   - /opt/local/sbin
   - /Library/Frameworks/Python.framework/Versions/3.4/bin
   - /usr/local/bin
   - /usr/bin
   - /bin
   - /usr/sbin
   - /sbin
   - /opt/X11/bin
   - /Library/TeX/texbin

我最好的猜测是Jekyll应该在usr/local/bin,而不是usr/local/Cellar,但正如我所说,这只是猜测。

任何有关如何重新开始工作的建议将不胜感激!

0 个答案:

没有答案