Nokogiri宝石安装问题

3

我搜索并发现一些人在尝试安装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
2个回答

4

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

对我有效的方法是禁用rdoc并重新安装。

使用命令gem update似乎无法工作,因为存在相同的解析错误(?)

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

升级rdoc就解决了我的问题。 - ROunofF

3

大部分错误都是测试或示例代码,所有错误都与编码有关。当它试图将字符转换为UTF-8时,如果发现错误,则跳过该字符,但这并不是很重要,Nokogiri会在这些警告后正常工作。


如果有人给我点了踩,请写下评论,我想知道你的意见:D - rderoldan1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接