Quick fix
Remove all the manually installed packages:
$ rm -rf $rvm_path/usrFind the requirements (follow the instructions):
$ rvm requirementsReinstall ruby:
$ rvm reinstall 1.9.3
Zlib
require "zlib" # => false ?!
If you have issues with zlib not being available in ruby / irb please try the procedure defined below.
$ rvm pkg install zlib $ rvm reinstall 1.9.2 --with-zlib-dir=$rvm_path/usr
Where you replace '/usr/local' with the prefix where your zlib packages are.
If you can not seem to get this to work you can have RVM install a copy of zlib into ~/.rvm/usr like so:
$ rvm pkg install zlib $ rvm reinstall 1.9.2
In case of compilation problems try:
$ rvm --skip-autoreconf pkg install zlib