[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing libxml-ruby on Windows: zlib

Robert Breininger

6/11/2006 7:31:00 PM

I tried installing with gems, and got:
checking for inflate() in z.lib... no
extconf failure: need zlib

Ok, fetched zlib (http://www.zlatkovic.com/p...), extracted it to
C:\Programme\winlib, changed to ext/xml and tried:
ruby extconf.rb --with-zlib-dir=C:\Programme\winlib

and got:
checking for inflate() in z.lib... no
extconf failure: need zlib

Also setting %INCLUDE% and %LIB% did not change anything. Where to go
from here? How can I tell ruby to look at the right place?

Robert
3 Answers

Ross Bamford

6/12/2006 1:51:00 PM

0

On Sun, 11 Jun 2006 20:31:06 +0100, Robert Breininger <mrh005@gmx.net>
wrote:

> I tried installing with gems, and got:
> checking for inflate() in z.lib... no
> extconf failure: need zlib
>
> Ok, fetched zlib (http://www.zlatkovic.com/p...), extracted it to
> C:\Programme\winlib, changed to ext/xml and tried:
> ruby extconf.rb --with-zlib-dir=C:\Programme\winlib
>
> and got:
> checking for inflate() in z.lib... no
> extconf failure: need zlib
>
> Also setting %INCLUDE% and %LIB% did not change anything. Where to go
> from here? How can I tell ruby to look at the right place?
>

I'm not sure how this works with Windows, but I'm guessing it's either:

* No Zlib headers (zlib.h) in the distribution you downloaded.

* Or, the distribution doesn't have the expected directory
layout on a Windows machine.

You'll need to make sure you have both the library and the headers, and
then try a command like the following:

ruby extconf.rb --with-zlib-lib=C:\path\ --with-zlib-include=C:\path
(Maybe the two paths are the same, maybe not - as long as the lib
directory contains the zlib so (dll?) and the include directory has
zlib.h, it will hopefully work fine. If I've missed something
Windows-specific here, fingers crossed that someone will jump in and tell
me so :)

--
Ross Bamford - rosco@roscopeco.remove.co.uk

Robert Breininger

6/13/2006 9:19:00 AM

0

Ross Bamford wrote:
> I'm not sure how this works with Windows, but I'm guessing it's either:
>
> * No Zlib headers (zlib.h) in the distribution you downloaded.
>
> * Or, the distribution doesn't have the expected directory
> layout on a Windows machine.
>
> You'll need to make sure you have both the library and the headers, and
> then try a command like the following:
>
> ruby extconf.rb --with-zlib-lib=C:\path\ --with-zlib-include=C:\path
Ross,
thank you for your reply. According to the documentation, this is the
same as --with-zlib-dir=C:\path
Unfortunately it does not work (but i can see in the mkmf.log file that
the paths are correct). My directory contains the follwoing data:
../bin:
minigzip.exe
zlib1.dll

../include:
zconf.h
zlib.h

../lib:
zdll.lib
zlib.lib

I've tried several variations of parameters, but it always complains
about not finding zlib.h.
Meanwhile i've read that quite a lot of people have a similar problem
with installing (Ruby-)stuff on Windows machines. And it always ends
with not finding .h files, even though they are there (e.g. ruby-ldap).
So it seems not to be a specifically problem of zlib. Is there anybody
out there, who has a deeper insight on this subject, and can say
something? Is there anybody out there, who actually managed to install
libxml-ruby on a Windows machine?

Robert

Ross Bamford

6/13/2006 10:10:00 AM

0

On Tue, 13 Jun 2006 10:18:45 +0100, Robert Breininger <mrh005@gmx.net> =

wrote:

> Ross Bamford wrote:
>> I'm not sure how this works with Windows, but I'm guessing it's eithe=
r:
>> * No Zlib headers (zlib.h) in the distribution you downloaded.
>> * Or, the distribution doesn't have the expected directory
>> layout on a Windows machine.
>> You'll need to make sure you have both the library and the headers, =
=

>> and then try a command like the following:
>> ruby extconf.rb =

>> --with-zlib-lib=3DC:\path\ --with-zlib-include=3DC:\path>
> Ross,
> thank you for your reply. According to the documentation, this is the =
=

> same as --with-zlib-dir=3DC:\path>

Not quite: --with-zlib-dir=3DC:\path\ would expect C:\path\lib and =

C:\path\include, while with the individual options you're specifying the=
=

actual include/lib directories manually. However:

> I've tried several variations of parameters, but it always complains =

> about not finding zlib.h.
> Meanwhile i've read that quite a lot of people have a similar problem =
=

> with installing (Ruby-)stuff on Windows machines. And it always ends =

> with not finding .h files, even though they are there (e.g. ruby-ldap)=
.. =

> So it seems not to be a specifically problem of zlib. Is there anybody=
=

> out there, who has a deeper insight on this subject, and can say =

> something? Is there anybody out there, who actually managed to install=
=

> libxml-ruby on a Windows machine?
>

I'm afraid I can't be of much help here, since I don't have a Windows =

machine to build/test with, and I haven't a clue about how things work =

over there. I do know of people who've gotten it running on Windows, =

however, I believe using that same Zlib port... It might be worth puttin=
g =

your question to the libxml-ruby list, see:

http://rubyforge.org/mailman/listinfo/li...

-- =

Ross Bamford - rosco@roscopeco.remove.co.uk