Bruno Moura wrote: > After to install the ruby 1.8.7 patch level 22 on ubuntu 8.04 hardy > succefully.Then I tryed to install rubygems 1.2 in sequence and I > received this error message: > > xyz@xyz: /usr/local/src/rubygems-1.2.0$ sudo ruby setup.rb > /lib/rubygems/spec_fetcher.rb:1:in `require': no such file to load -- > zlib (LoadError) > > How Can I fix this problem? Everyone had this experience? You need to compile and install ruby again from source, but this time with the zlib development package installed (I think it's called "zlib1g-dev" or something like that; I don't have an Ubuntu machine handy right now) This is so that Ruby can build its own zlib extension. -- Posted via http://www.ruby-forum.com/.