libxml-ruby-1.1.4 installation

209 views
Skip to first unread message

Chris

unread,
Nov 4, 2010, 11:05:06 AM11/4/10
to RubyInstaller
Hi,

I am not able to install libxml-ruby-1.1.4

Installing libxml-ruby (1.1.4) Temporarily enhancing PATH to include
DevKit...
with native extensions

...

missing: to_hash
missing: to_ary
checking for gethostbyname() in -lnsl... no
missing: to_hash
missing: to_ary
checking for atan() in -lm... yes
missing: to_hash
missing: to_ary
checking for inflate() in -lz... no
missing: to_hash
missing: to_ary
checking for inflate() in -lzlib... no
missing: to_hash
missing: to_ary
checking for inflate() in -lzlib1... no
extconf failure: need zlib
missing: to_io
missing: to_path

There is a windows version of 1.1.3 (http://rubyforge.org/frs/?
group_id=494, from March 2009) but unfortunately, bundler tries to
install 1.1.4 although 1.1.3 x86-mswin32-60 is installed.

I tried to install the gem manually in gitbash (it says MINGW32; i
don't understand why that's something different to my windows console)
and got another error, which also has to do with the need for zlib:

---> lib
---> lib/libxml
...
Checking for inflate() in -lzlib1... no
extconf failure: need zlib

So how do I get zlib?

Thanks for your answer!

Luis Lavena

unread,
Nov 4, 2010, 1:16:55 PM11/4/10
to rubyin...@googlegroups.com
On Thu, Nov 4, 2010 at 1:05 PM, Chris <kai.k...@googlemail.com> wrote:
> Hi,
>
> I am not able to install libxml-ruby-1.1.4
>

To be able to install libxml-ruby you need all the libxml-ruby dependencies:

libxml
zlib

That means you need to have headers and linking libraries of those
available in the GCC search path.

DevKit or RubyInstaller do not provide these libraries simply because
that means lot of maintenance we are not able to take.

I would suggest you reach libxml-ruby author (Charlie Savage):

https://rubygems.org/gems/libxml-ruby

And ask him to provide gems for x86-mingw32 platform (RubyInstaller).

Perhaps suggest him, in the case he is not using Windows, to rely on
rake-compiler to be able to generate binaries for Windows.

There is also a x86-mswin32-60 binary which could be used, but I
advise against that since I'm not aware how that gem was created or
for which version of Ruby.

>
> So how do I get zlib?
>

Please take a look to a post from another user on how him solved
compilation of EventMachine with SSL support:

http://groups.google.com/group/rubyinstaller/msg/b6ffb289c2b1d63b

RubyInstaller recipes already contain zlib, but you will need to
create a recipe for libxml.

HTH,

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Chris

unread,
Nov 5, 2010, 4:19:41 AM11/5/10
to RubyInstaller
Thanks for your help!

When reading your lines, however, the voice in my mind becomes louder,
nearly yelling: "Now come on, get a Mac!"

... x)

Best
Chris

On 4 Nov., 18:16, Luis Lavena <luislav...@gmail.com> wrote:

Luis Lavena

unread,
Nov 5, 2010, 7:10:38 AM11/5/10
to rubyin...@googlegroups.com
On Fri, Nov 5, 2010 at 5:19 AM, Chris <kai.k...@googlemail.com> wrote:
> Thanks for your help!
>
> When reading your lines, however, the voice in my mind becomes louder,
> nearly yelling: "Now come on, get a Mac!"
>

On a Mac you would have suffered similar things, with the exception of
more clear instructions from where to get libxml :P
(or how to build it) because someone else already stepped into the
same issue, and believe it or not, happens *a lot*

I believe DevKit is quite capable of the later, but haven't done it so dunno.

Reply all
Reply to author
Forward
0 new messages