2013-09-25 120 views
3

我已经搜索并发现一些人在尝试安装nokogiri时遇到各种问题,但我还没有看到任何人有这么多或这些类型的文件被跳过....任何想法?nokogiri宝石安装问题

gem install nokogiri 
Building native extensions. This could take a while... 
Successfully installed nokogiri-1.6.0 
unable to convert "\xE4" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxml2/2.8.0/libxml2-2.8.0/doc/examples/testWriter.c, skipping 
unable to convert "\xF8" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxml2/2.8.0/libxml2-2.8.0/entities.c, skipping 
unable to convert "\xE9" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxml2/2.8.0/libxml2-2.8.0/runtest.c, skipping 
unable to convert "\xC0" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxml2/2.8.0/libxml2-2.8.0/test/XInclude/ents/isolatin.txt, skipping 
unable to convert "\xF8" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxml2/2.8.0/libxml2-2.8.0/testapi.c, skipping 
unable to convert "\xF6" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxslt/1.1.26/libxslt-1.1.26/ChangeLog, skipping 
unable to convert "\xF6" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxslt/1.1.26/libxslt-1.1.26/libxslt/xslt.c, skipping 
unable to convert "\xE1" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxslt/1.1.26/libxslt-1.1.26/NEWS, skipping 
unable to convert "\x89" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxslt/1.1.26/libxslt-1.1.26/tests/xmlspec/logo-REC, skipping 
unable to convert "\xFD" from ASCII-8BIT to UTF-8 for ext/nokogiri/tmp/i686-apple-darwin11/ports/libxslt/1.1.26/libxslt-1.1.26/win32/Readme.txt, skipping 
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ports/i686-apple-darwin11/libxml2/2.8.0/bin/xmlcatalog, skipping 
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ports/i686-apple-darwin11/libxml2/2.8.0/bin/xmllint, skipping 
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ports/i686-apple-darwin11/libxslt/1.1.26/bin/xsltproc, skipping 
1 gem installed 

回答

3

大多数错误是测试或示例代码,当它试图CON一个字符,如果发现它跳过错误转换为UTF-8所有的错误都涉及到编码,但不是很重要的是,nokogiri会在这些警告后工作

+0

如果有人投票了,请发表评论,我想知道您的意见:D – rderoldan1

4

这是rdoc 4.0.0中的一个错误。尝试升级到版本4.0.1

对我来说有效,它是禁用rdoc并重新安装。

使用命令gem update,由于解析错误(?)相同,它似乎不起作用。

$ ruby --disable-gems -S "Rdoc" 
gem install rdoc 
+0

升级rdoc为我做了。 – ROunofF

+0

这个效果很好。谢谢 –