我正在尝试按照以下说明将我的博客迁移到 Jekyll:http: //jekyllrb.com/docs/migrations/
我的所有帖子都是 .xml 格式的,但是转换它们的命令似乎不起作用:
ruby -rubygems -e '需要“jekyll/jekyll-import/wordpressdotcom”; JekyllImport::WordpressDotCom.process({ :source => "wordpress.xml" })' /home/robin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': 无法加载此类文件 -- hpricot (LoadError ) 来自/home/robin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 来自/home/robin/.rvm/gems/ruby-1.9.3-p448/gems/jekyll-import-0.1.0.beta3/lib/jekyll/jekyll-import/wordpressdotcom.rb:4:in `' 来自/home/robin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require' 来自/home/robin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' 来自 /home/robin/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' 从 -e:1:in `'
我想这是因为 Hpricot 没有安装(gem list
没有显示它,即使我用 gem install 安装了它)。它也可能是 Ruby 版本问题(因此多个“来自”行ruby -v
告诉我它是 ruby 1.9.3p448 。
非常感谢您的帮助