2014-10-29 42 views
7

安装时的消息是这样说的,但我找不到任何参考。 “目前已知被打破”,但知道,什么的问题?我已经检查了Nokogiri代码库和问题日志,但是我找不到对此的参考。Nokogiri说2.9.0以上版本的Libxml2被破坏了,是吗?

这里的消息引入nokogiri(v1.6.3.1在这种情况下)(的相关部分)给出:

IMPORTANT! Nokogiri builds and uses a packaged version of libxml2. 

If this is a concern for you and you want to use the system library 
instead, abort this installation process and reinstall nokogiri as 
follows: 

    gem install nokogiri -- --use-system-libraries 

If you are using Bundler, tell it to use the option: 

    bundle config build.nokogiri --use-system-libraries 
    bundle install 

However, note that nokogiri does not necessarily support all versions 
of libxml2. 

For example, libxml2-2.9.0 and higher are currently known to be broken 
and thus unsupported by nokogiri, due to compatibility problems and 
XPath optimization bugs. 
+2

中的XPath优化的错误可能是[这个问题](https://bugzilla.gnome.org/show_bug.cgi?id=695699)。这是我的错,但它[在当前的2.9.2发行版中修复](https://git.gnome.org/browse/libxml2/commit/?id=b4bcba23f64b71105514875f165a63d4cc720609)。 – nwellnhof 2014-10-29 16:10:13

+0

@nwellnhof很荣幸为您承担这样的责任,并感谢您的信息。神秘33%解决!现在找出“兼容性问题”,以及为什么***知道***是如此难以知道*** :-) – iain 2014-10-29 16:20:43

+0

嗨,伙计们,我正在使用优胜美地,这发生在我身上。任何帮助? – olleh 2015-01-12 08:28:27

回答

1

可能有两种方式:1。 使用系统库,因为它表明:

gem install nokogiri -- --use-system-libraries 
  • 它可能是grep的问题,表明here,你可能能够通过外壳命令克服它(使用bash假设):
  • export GREP_OPTIONS="--color=auto"

    +0

    这并没有回答这个问题,所以我不能给它打勾,但它可能对其他人很有帮助,所以最好把它留在这里。 – iain 2015-04-02 11:13:36