Ruby - amazon account crawler

_tnt_

Lt. Junior Grade
Registriert
Aug. 2006
Beiträge
488
Hallo!

Beim Amazon Account Crawler handelt es sich um ein Script zum aufsummieren der Amazon-Ausgaben.
Habe das von dieser Seite hier.

Im Grunde muss man nichts machen außer folgende Punkte zu installieren:

1) Ruby
2) Rubygems (>> "gem update --system")
3) Rubygem: highline (>> "gem install highline")
4) Rubygem: mechanize (e>> "gem install mechanize")

Damit man mechanize installieren kann muss man noch das Ruby Dev Kit installieren.

Im Grunde klingt das alles nicht so schwer. Nur ich schaffe es nicht.

Nachdem ich das dev kit installiert habe und dann mechanize installieren möchte, kriege ich folgende Fehlermeldung.

Code:
#######################################################################

C:\devkit>gem install mechanize
Fetching: net-http-digest_auth-1.2.1.gem (100%)
Successfully installed net-http-digest_auth-1.2.1
Fetching: net-http-persistent-2.8.gem (100%)
Successfully installed net-http-persistent-2.8
Fetching: mime-types-1.21.gem (100%)
Successfully installed mime-types-1.21
Fetching: nokogiri-1.5.6.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.

D:/programme/Ruby/bin/ruby.exe extconf.rb
The system cannot find the path specified.
checking for libxml/parser.h... no
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokog
iri.html for help with installing dependencies.
-----
*** 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
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=D:/programme/Ruby/bin/ruby
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/
--with-libxslt-config
--without-libxslt-config
--with-pkg-config
--without-pkg-config
--with-libxml-2.0-config
--without-libxml-2.0-config
--with-pkg-config
--without-pkg-config
--with-libiconv-config
--without-libiconv-config
--with-pkg-config
--without-pkg-config


Gem files will remain installed in D:/programme/Ruby/lib/ruby/gems/2.0.0/gems/no
kogiri-1.5.6 for inspection.
Results logged to D:/programme/Ruby/lib/ruby/gems/2.0.0/gems/nokogiri-1.5.6/ext/
nokogiri/gem_make.out

#######################################################################


Vielleicht könnte das mal jemand testen und mir dann weiter helfen.


_tnt_
 
Schau mal hier:

Code:
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.

Vielleicht hilft dir das weiter.
 
Ja das verstehe ich nicht... was findet er da nicht? Das Verzeichnis "D:/programme/Ruby/bin/ruby.exe" gibt es.

Heißt das, dass die Datei "extconf.rb" im selben Ordner wie die ruby.exe liegen muss?

D:/programme/Ruby/bin/ruby.exe extconf.rb
The system cannot find the path specified.
checking for libxml/parser.h... no


_tnt_
 
Um weitere Schmerzen zu vermeiden kann ich Dir nur empfehlen, Dir ein Linux/Unix aufzusetzen, mit dem Du entwickelst. Schon alleine aus dem Grund, dass Du bei solchen Problemen sofort Hilfe bekommst, weil einfach 98% der Devs unter diesen OSs unterwegs sind..
 
gibt es eine kleine feine linux distro die ich vom usb stick starten könnte?
ruby müsste dann halt auf den stick installiert werden.

_tnt_
 
Zurück
Oben