2014-10-29 3 views
7

Die Meldung zur Installation sagt zwar, aber ich kann keinen Hinweis darauf finden. "sind derzeit bekannt zu brechen", aber bekannt von wem, und was ist das Problem? Ich habe die Nokogiri-Codebasis und das Problemprotokoll überprüft, aber ich kann den Verweis darauf nicht finden.Nokogiri sagt Versionen von Libxml2 über 2.9.0 sind kaputt, oder?

Hier sind die (relevanten Teile der) Nachricht Nokogiri (v1.6.3.1 in diesem Fall) ergibt:

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

Der XPath-Optimierung Fehler ist wahrscheinlich [dieses Thema] (https://bugzilla.gnome.org/show_bug.cgi?id=695699). Das war meine Schuld, aber es ist [in der aktuellen Version 2.9.2 behoben] (https://git.gnome.org/browse/libxml2/commit/?id=b4bcba23f64b71105514875f165a63d4cc720609). – nwellnhof

+0

@nwellnhof Vielen Dank für die Verantwortung, und danke für die Info. Rätsel 33% gelöst! Nun, um herauszufinden, was die "Kompatibilitätsprobleme" sind, und warum *** bekannt *** ist so schwer zu *** *** :-) – iain

+0

Hallo Leute, ich benutze Yosemite und das passiert mir . Irgendeine Hilfe??? – olleh

Antwort

1

Es könnte zwei Möglichkeiten sein: 1. wie es Verwendung Systembibliotheken zeigen:

gem install nokogiri -- --use-system-libraries 
  1. es könnte grep Problem sein, here angezeigt, und Sie könnten in der Lage sein, über sie von einem Shell-Befehl zu erhalten (mit Bash vorausgesetzt):

export GREP_OPTIONS="--color=auto"

+0

Das beantwortet die Frage nicht, also kann ich es nicht ankreuzen, aber es kann für andere hilfreich sein, so dass es am besten hier bleibt. – iain