安装 Jekyll 时如何解决此错误?
How do I resolve this error while installing Jekyll?
我按照 this page 并安装了 Jekyll,但是当我尝试 运行 Jekyll 时,我得到了这个错误:
/usr/local/lib/site_ruby/2.1.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'liquid' (~> 2.5.5) - did find: [liquid-3.0.1,liquid-2.6.1] (Gem::LoadError)
Checked in 'GEM_PATH=/home/ali/.gem/ruby/2.1.0:/var/lib/gems/2.1.0:/usr/share/rubygems-integration/2.1.0:/usr/share/rubygems-integration/2.1:/usr/share/rubygems-integration/all', execute `gem env` for more information
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1311:in `block in activate_dependencies'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1300:in `each'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1300:in `activate_dependencies'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1282:in `activate'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:67:in `block in gem'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:66:in `synchronize'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:66:in `gem'
from /usr/local/bin/jekyll:22:in `<main>'
这个错误说明jekyll需要的liquidGem版本低于你安装的版本。您应该考虑安装正确的版本 v2.5.5。
gem install liquid -v 2.5.5
应该解决这个问题。
我按照 this page 并安装了 Jekyll,但是当我尝试 运行 Jekyll 时,我得到了这个错误:
/usr/local/lib/site_ruby/2.1.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'liquid' (~> 2.5.5) - did find: [liquid-3.0.1,liquid-2.6.1] (Gem::LoadError)
Checked in 'GEM_PATH=/home/ali/.gem/ruby/2.1.0:/var/lib/gems/2.1.0:/usr/share/rubygems-integration/2.1.0:/usr/share/rubygems-integration/2.1:/usr/share/rubygems-integration/all', execute `gem env` for more information
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1311:in `block in activate_dependencies'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1300:in `each'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1300:in `activate_dependencies'
from /usr/local/lib/site_ruby/2.1.0/rubygems/specification.rb:1282:in `activate'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:67:in `block in gem'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:66:in `synchronize'
from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:66:in `gem'
from /usr/local/bin/jekyll:22:in `<main>'
这个错误说明jekyll需要的liquidGem版本低于你安装的版本。您应该考虑安装正确的版本 v2.5.5。
gem install liquid -v 2.5.5
应该解决这个问题。