Hi,

I'm trying to install libxml-ruby on Windows, and am having a problem.  It
seems that this has happened to several other people but the issue has never
been resolved (at least the solution has never been posted).

The command line output is below, but here's the gist.  Apparently the
inflate() method can't be found in zlib.  I see zlib1.dll in C:\ruby\bin\,
but just to be sure I downloaded the zlib DLL and copied it to
C:\Windows\System.  Got the same result, so I explicitly specified the path
to the library with the following command:

C:\ruby\src\ruby-1.8.6-p111\ext\zlib>ruby extconf.rb
--with-zlib-lib=c:\Files\in
stallers\zlib\ --with-zlib-include=c:\Files\installers\zlib\include

The only difference there was that it couldn't find the deflateReset()
method.

Anyone have any ideas?  Anyone installed libxml-ruby on Windows
successfully?
Thanks,

-David van Geest
SpinDance, Inc.

>gem install roxml
Install required dependency libxml-ruby? [Yn]  y
Select which gem to install for your platform (i386-mswin32)
 1. libxml-ruby 1.1.3 (x86-mswin32-60)
 2. libxml-ruby 1.1.3 (ruby)
 3. libxml-ruby 1.1.2 (ruby)
 4. libxml-ruby 1.1.2 (x86-mswin32-60)
 5. Skip this gem
 6. Cancel installation
> 3
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install roxml
checking for socket() in socket.lib... no
checking for gethostbyname() in nsl.lib... no
checking for atan() in m.lib... yes
checking for inflate() in z.lib... no
checking for inflate() in zlib.lib... no
checking for inflate() in zlib1.lib... 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
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/ruby/bin/ruby
        --with-iconv-dir
        --without-iconv-dir
        --with-iconv-include
        --without-iconv-include=${iconv-dir}/include
        --with-iconv-lib
        --without-iconv-lib=${iconv-dir}/lib
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --with-socketlib
        --without-socketlib
        --with-nsllib
        --without-nsllib
        --with-mlib
        --without-mlib
        --with-zlib
        --without-zlib
        --with-zliblib
        --without-zliblib
        --with-zlib1lib
        --without-zlib1lib
 extconf failure: need zlib

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to