P
Pelle Braendgaard
I've been trying to get a hand built ruby to work on a suse 9.1
machine as the latest rpm is version 1.8.1.
I install ruby using plain old ./configure, make, make install as normal.
But it has a problem with zlib which I discovered trying to install gems:
irb(main):001:0> require 'zlib'
LoadError: /usr/local/lib/ruby/site_ruby/1.8/i686-linux/zlib.so:
undefined symbol: inflateReset -
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/zlib.so
from /usr/local/lib/ruby/site_ruby/1.8/i686-linux/zlib.so
from (irb):1
My Ruby is:
/opt/downloads/ruby-1.8.2 # ruby -v
ruby 1.8.2 (2004-12-25) [i686-linux]
And my zlib is:
/opt/downloads/ruby-1.8.2 # rpm -q zlib
zlib-1.2.1-70.6
I am confident that this is something really simple, but I am not
experienced enough in this area to work it out. The extension file
zlib.c from ruby contains a reference to it inflateReset, but this is
a supposedly a standard feature of zlib according to the manual, so I
don't understand why it doesn't load it.
I would appreciate any guidance here as I am on pretty bare ground here.
Regards
Pelle
machine as the latest rpm is version 1.8.1.
I install ruby using plain old ./configure, make, make install as normal.
But it has a problem with zlib which I discovered trying to install gems:
irb(main):001:0> require 'zlib'
LoadError: /usr/local/lib/ruby/site_ruby/1.8/i686-linux/zlib.so:
undefined symbol: inflateReset -
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/zlib.so
from /usr/local/lib/ruby/site_ruby/1.8/i686-linux/zlib.so
from (irb):1
My Ruby is:
/opt/downloads/ruby-1.8.2 # ruby -v
ruby 1.8.2 (2004-12-25) [i686-linux]
And my zlib is:
/opt/downloads/ruby-1.8.2 # rpm -q zlib
zlib-1.2.1-70.6
I am confident that this is something really simple, but I am not
experienced enough in this area to work it out. The extension file
zlib.c from ruby contains a reference to it inflateReset, but this is
a supposedly a standard feature of zlib according to the manual, so I
don't understand why it doesn't load it.
I would appreciate any guidance here as I am on pretty bare ground here.
Regards
Pelle