Extconf.rb problems

I am using last ruby installed with the 1-click install, on Windows.

When i use extconf.rb files, I always get errror messages like this
one:
checking for deflateReset() in z.lib… no
checking for deflateReset() in libz.lib… no
checking for deflateReset() in zlib.lib… no

I tried to install ruby-zlib from
http://raa.ruby-lang.org/project/ruby-zlib
but i have the same problems.

Can someone please help me ? How can I make extconf.rb files work ?
Any help would be greatly appreciated, since I really would like to use
ruby but can’t figure how to solve problems like this one.

Daniel R wrote:

but i have the same problems.

Can someone please help me ? How can I make extconf.rb files work ?
Any help would be greatly appreciated, since I really would like to use
ruby but can’t figure how to solve problems like this one.

I suppose you have a Windows machine from the library names. I’ll admit
I have no idea where extconf.rb looks for libraries by default there or
how it does it. Do you have Zlib somewhere on your computer (e.g. the
files it’s looking for) at all, by the way?

When trying to compile extensions, you might want to use the mingw32
version of ruby instead of the mswin32 one the one-click-installer uses.
Mingw and MSYS work a quite bit more automagically than a VC++ one, that
is, unless you bought or otherwise came to own Visual Studio.

And just by the way, the one-click-installer comes Ruby 1.8, which has a
working Zlib in the standard library - notice the RAA page mentioning
the standalone module is deprecated.

David V.

There is something wrong with your installation. The O.-Click Ruby
Installer comes with ZLib already installed, so you shouldn’t be having
this
problem.

Try this:

  • Uninstall Ruby

  • make sure that the directory you have ruby installed in is completely
    deleted.

  • Make sure your path does not contain ruby\bin and that the RUBYOPT
    environment variable does not exist (unless you’ve set it yourself)

  • Reinstall Ruby.

  • Make sure you path does contain ruby\bin and that RUBYOPT contains
    “rubygems” (reboot and check again if it doesn’t).

The above steps will, at least, ensure that you have a good Ruby
installation.

Curt