From: Daniel Carrera Date: 2003-10-28T05:51:34+09:00 Subject: Re: How to include zip in a program. I think that my Ruby is broken. I did compile it from source, but I'm missing the zlib module. $ ruby -v ruby 1.8.0 (2002-12-24) [sparc-solaris2.8] $ $ ruby -e " require 'zlib' " -e:1:in `require': No such file to load -- zlib (LoadError) $ $ ls -R lib/ruby/ | grep zlib $ I've tried compiling the ruby-zlib module from RAA but without success (see my earlier post). Can anyone see anything I'm doing wrong? I don't recall any particular errors when I compiled ruby 1.8.0. If I can't find anything I'll try compiling ruby again. Cheers, Daniel. On Mon, Oct 27, 2003 at 02:57:06PM -0600, Lyle Johnson wrote: > Daniel Carrera wrote: > > >Recent ruby distributions come with ruby/zlib? > > The "zlib" extension module is one of the standard extensions shipped > with ruby 1.8.0. If you built ruby 1.8.0 from source, you should find > the code for it in the ruby-1.8.0/ext/zlib directory of the source tree. > If you've already built and installed ruby 1.8.0, you should be able to do: > > require 'zlib' > > to load that extension. > > Hope this helps, > > Lyle -- Daniel Carrera | OpenPGP KeyID: 9AF77A88 PhD grad student. | Mathematics Dept. | "To understand recursion, you must first UMD, College Park | understand recursion".