Installing Ruby on Ubuntu 10.10 using RVM, problem with gem
When using rvm you can simple do steps that are shown here: link text
$ rvm pkg install zlib
(or, older format, rvm package install zlib
)
$ rvm remove 1.9.2
$ rvm install 1.9.2 --with-zlib-dir=~/.rvm/usr
Try the following in your Ruby source after installing zlib1g-dev:
cd ext/zlib
ruby extconf.rb
make
sudo make install
Also see: https://rbjl.janlelis.com/19-rubybuntu-1-installing-ruby-and-rails-on-ubuntu
Or if using rvm, just re-install the ruby version once you have zlib1g-dev installed.