Problem installing Rubygems on Ubuntu
September 15th, 2008 | Uncategorized | No Comments »I was installing Rubygems 1.2.0 on Ubuntu 7.04 on Friday, something I’ve done many times but for the first time I saw this error when I ran sudo ruby setup.rb
./lib/rubygems/spec_fetcher.rb:1:in `require': no such file to load -- zlib (LoadError) from ./lib/rubygems/spec_fetcher.rb:1 from ./lib/rubygems/source_index.rb:10:in `require' from ./lib/rubygems/source_index.rb:10 from ./lib/rubygems.rb:767:in `require' from ./lib/rubygems.rb:767 from setup.rb:22:in `require' from setup.rb:22
Having a look around the web yielded several approaches to solve the problem but no solution so I decided to build Zlib from source, then rebuild Ruby and then install Rubygems. That worked.
Read on »







