2013-09-25 125 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

這個效果很好。謝謝 –