我刚刚用rbenv替换了RVM,并清理了所有与RVM相关的东西。
一切都很顺利,除了Jekyll,它在_site中没有产生任何东西。
然后我尝试用--no-auto
启动它,并得到了这个例外:
/home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): found unexpected end of stream while scanning a quoted scalar at line 3 column 8 (Psych::SyntaxError)
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych.rb:151:in `parse'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych.rb:127:in `load'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/convertible.rb:33:in `read_yaml'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/page.rb:24:in `initialize'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:140:in `new'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:140:in `block in read_directories'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `each'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:130:in `read_directories'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:98:in `read'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/lib/jekyll/site.rb:38:in `process'
from /home/carlos/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
from /home/carlos/.rbenv/versions/1.9.3-p327/bin/jekyll:23:in `load'
from /home/carlos/.rbenv/versions/1.9.3-p327/bin/jekyll:23:in `<main>'
我真的不知道gems文件夹里面有“1.9.1”的位置。
ruby -v
:
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
这里发生了什么?
答案 0 :(得分:1)
发现了这个问题。似乎心理是双重加载,一次是由宝石,另一次是由stdlib。所以,我刚刚删除了宝石:
gem uninstall psych
现在它正在工作。
无论如何,在这里,请采取一些相关的链接:
还有一个解决方案,可以将mental gem添加到应用程序Gemfile中。怪异。