Wie installiere ich den ruby-gem libxml ohne 'extconf scheitern: müssen libxml2'

Derzeit bin ich versucht zu installieren, ein ruby-gem, das schlägt fehl, weil extconf sagt, es muss libxml, wenn ich also die Folgen diese Anweisungen zum installieren von libxml (die diese Anweisungen für das ruby dev kit-installation) erhalte ich folgende Ausgabe:

$ gem install libxml-ruby --platform x86-mswin32-60
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing libxml-ruby:
    ERROR: Failed to build gem native extension.

    c:/Ruby/bin/ruby.exe extconf.rb
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... yes
checking for inflate() in -lz... no
checking for inflate() in -lzlib... no
checking for inflate() in -lzlib1... yes
checking for iconv_open() in -liconv... no
checking for libiconv_open() in -liconv... yes
checking for xmlParseDoc() in -lxml2... no
checking for xmlParseDoc() in -llibxml2... no
checking for xmlParseDoc() in -lxml2... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
--8<--
    --with-xml2lib
    --without-xml2lib
 extconf failure: need libxml2.

Install the library or try one of the following options to extconf.rb:

  --with-xml2-config=/path/to/xml2-config
  --with-xml2-dir=/path/to/libxml2
  --with-xml2-lib=/path/to/libxml2/lib
  --with-xml2-include=/path/to/libxml2/include

Gem files will remain installed in c:/Ruby/lib/ruby/gems/1.9.1/gems/libxml-ruby-2.2.2 for inspection.
Results logged to c:/Ruby/lib/ruby/gems/1.9.1/gems/libxml-ruby-2.2.2/ext/libxml/gem_make.out

Ich bin auf Windows 7 x64 installieren mit meinem minGW32-shell/git zu installieren. Die Installation schlägt fehl, mit der selben Meldung von der windows-ruby-enhanced-Befehl promt.

fwiw:

$ ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

$ git --version
git version 1.7.6.msysgit.0

$ gem -v
1.8.10
  • Die Antwort auf diese Frage das problem gelöst: stackoverflow.com/questions/2915788/...
  • Ich habe diesen Kommentar. Sie sollte die post diesen link als Antwort, so dass andere können leicht sehen, die Antwort.
InformationsquelleAutor Zaz | 2011-09-14
Schreibe einen Kommentar