Trying to get Ruby 1.9.1 up and running with RVM on a fresh install (fedora).
After doing rvm install 1.9.1, the rubygems error logs show that zlib can
rvm install 1.9.1
For me, the solution was very simple: I had forgotten to close/reopen the shell, as rvm setup had instructed me to do. After I did that, the zlib error was gone and I was able to: gem install bundler