我剛剛遷移到另一臺計算機並安裝了Jekyll。現在我似乎無法讓Jekyll生成我的網站。當我運行jekyll --no-server
我得到:在Jekyll中生成_site文件的問題
/Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
Configuration from /Users/sb/Sites/drb/_config.yml
Building site: /Users/sb/Sites/drb -> ./_site
/Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected ',' or ']' while parsing a flow sequence at line 6 column 13 (Psych::SyntaxError)
from /Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
from /Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in `parse'
from /Users/sb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in `load'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/convertible.rb:33:in `read_yaml'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/post.rb:39:in `initialize'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:163:in `new'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:163:in `block in read_posts'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:161:in `each'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:161:in `read_posts'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:128:in `read_directories'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:98:in `read'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/lib/jekyll/site.rb:38:in `process'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:19:in `load'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/jekyll:19:in `<main>'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/sb/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
傑基爾似乎一切正常,但似乎_posts
我降價文件不轉換爲HTML,因爲我沒有在_site
任何文件。刪除_site
目錄然後重新生成我的網站創建一個新的_site
,但文件夾內沒有內容。誰能幫忙?謝謝。
以前運行的是什麼版本的Ruby?你能想到電腦交換機可能產生的任何依賴性問題嗎? – Dru
感謝您的幫助。我在以前的機器上運行ruby 1.9.2,但我想不出任何依賴性問題。 – drbunsen
根據你的建議,我還安裝了1.9.2,這是我之前使用的Ruby版本 - 我仍然遇到1.9.2的相同問題。 – drbunsen