When trying to install the ruby gem libxml-ruby on my windows computer I get the following error message
D:/.../bin/ruby.exe extconf.rb
checking for socket() in -lsocket... no
checking for gethostbyname() in -lnsl... no
checking for atan() in -lm... yes
checking for inflate() in -lz... no
checking for inflate() in -lzlib... no
checking for inflate() in -lzlib1... no
extconf failure: need zlib
Can someone tell me how to install this gem? I googled for answers and also found the zlib libraries but don't know where to use them.
I am using ruby version 1.8.7 with devkit 4.5.1
MY SOLUTION
- Copied the zlib1.dll from the ruby/bin folder to the ruby/lib folder
- downloaded the iconv.dll from ftp://ftp.zlatkovic.com/libxml/ and put it also in the ruby/lib folder
- downloaded the libxml2 from ftp://ftp.zlatkovic.com/libxml/ and put the libxml-folder from the include folder in the devkit include directory for mingw (in my case sth. like devkit/mingw/mingw32/include)