I had already checked that and my options are passed correctly (as far as I
can see). 

 

See below an extract of the 'mkmf' log file for zlib

 

Fabrice

 

have_library: checking for inflate() in z.lib... -------------------- no

 

"cl -nologo -Feconftest -I.
-ID:/MyDev/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I.
-ID:/MyDev/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -ID:/lib/zlib/include
-ID:/lib/libxml2/include -ID:/lib/iconv/include  -MD -Zi -O2b2xg- -G6
conftest.c   msvcrt-ruby18-static.lib z.lib  oldnames.lib user32.lib
advapi32.lib ws2_32.lib   -link    -libpath:"D:/MyDev/InstantRails/ruby/lib"
-libpath:"D:/lib/zlib/lib" -libpath:"D:/lib/libxml2/lib"
-libpath:"D:/lib/iconv/lib" -libpath:"D:/MyDev/InstantRails/ruby/lib"
-stack:0x2000000"

checked program was:

/* begin */

1: #define WIN32_LEAN_AND_MEAN

2: #include <winsock2.h>

3: #include <windows.h>

4: 

5: /*top*/

6: int main() { return 0; }

7: int t() { void ((*volatile p)()); p = (void ((*)()))inflate; return 0; }

/* end */

 

"cl -nologo -Feconftest -I.
-ID:/MyDev/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I.
-ID:/MyDev/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -ID:/lib/zlib/include
-ID:/lib/libxml2/include -ID:/lib/iconv/include  -MD -Zi -O2b2xg- -G6
conftest.c   msvcrt-ruby18-static.lib z.lib  oldnames.lib user32.lib
advapi32.lib ws2_32.lib   -link    -libpath:"D:/MyDev/InstantRails/ruby/lib"
-libpath:"D:/lib/zlib/lib" -libpath:"D:/lib/libxml2/lib"
-libpath:"D:/lib/iconv/lib" -libpath:"D:/MyDev/InstantRails/ruby/lib"
-stack:0x2000000"

checked program was:

/* begin */

1: /*top*/

2: int main() { return 0; }

3: int t() { inflate(); return 0; }

/* end */

 

--------------------

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Janowski
Sent: Wednesday, October 24, 2007 4:49 PM
To: libxml-devel@rubyforge.org
Subject: Re: [libxml-devel] Problem installing libxml-ruby-0.5.2 on windows

 

The real info needed is in mkmf.log. Check to see if the option for libz is
doing what you think it should.

Dan

 

On Oct 24, 2007, at 16:28, Fabrice ((GMail)) wrote:





Hi,

 

I checked the mailing list archives and did not find any answers to this
issue.

 

I get the following error when running "gem install -r libxml-ruby".

 

*****************************************************************
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
.

*****************************************************************

 

As suggested on libxml.rubyforge.org, I ran "ruby extconf.rb" and specified
the following options: -with-xml2-dir, --with-iconv-dir, --with-zlib-dir. I
got the same error message (FYI: I downloaded pre-compiled libraries for
Windows).

 

This is driving me crazy since I do need a XML/XSLT parser urgently for my
Ruby application.

 

I would greatly appreciate if someone could take the time to give me a few
hints on how to solve this issue.

 

Thanks,

Fabrice

 

 

 

_______________________________________________

libxml-devel mailing list

libxml-devel@rubyforge.org

http://rubyforge.org/mailman/listinfo/libxml-devel

 

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

Reply via email to