From: Brian Candler Date: 2010-02-15T18:49:50+09:00 Subject: Re: building ruby on rails Michael Felt wrote: > I have downloaded ruby-1.91-1-p376, configured and built > > (./configure --with-pthreads; make;make install) > > downloaded rubygem 1.3.5, unpacked, then > > ruby setup.rb > > And when I run > > # gem install rails > > I get the following error: > # gem install rails > /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in `require': > no > such file to load -- zlib (LoadError) This means that ruby zlib library wasn't built when you were building ruby 1.9, but rubygems needs it. The solution depends on what system you are building under. For example, if you are building under Ubuntu, then you need to do sudo apt-get install zlib1g-dev then reconfigure and rebuild ruby 1.9 from scratch, so it can detect the zlib header files and build the ruby zlib extension, then try and build rubygems again. I'd also recommend sudo apt-get install libssl-dev before building ruby, because without this, ruby won't have openssl support and hence can't do HTTPS. Regards, Brian. -- Posted via http://www.ruby-forum.com/.