After I do
rvm uninstall 1.9.3
rvm pkg install zlib
rvm install 1.9.3 --with-zlib-dir=$rvm_path/usr
there is still no zlib. Any gem install or gem update command fails with error:
$ gem update --system
ERROR: Loading command: update (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::UpdateCommand
System is Ubuntu Server 11.10 x64.
Try to install the packages from the Ubuntu apt repos.
sudo apt-get install zlib1g zlib1g-devRemember to uninstall 1.9.3 again after you install these.