ruby-on-rails – nokogiri gem install问题

搜索并发现有些人在尝试安装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

解决方法

大多数错误是测试或示例代码,并且所有错误都与编码有关,当它尝试将字符转换为UTF-8时如果发现错误它跳过它,但不是很重要,nokogiri将在那些之后工作警告

相关文章

validates:conclusion,:presence=>true,:inclusion=>{...
一、redis集群搭建redis3.0以前,提供了Sentinel工具来监控各...
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣...
上一篇博文 ruby传参之引用类型 里边定义了一个方法名 mo...
一编程与编程语言 什么是编程语言? 能够被计算机所识别的表...
Ruby类和对象Ruby是一种完美的面向对象编程语言。面向对象编...