title: Not able to run gem command and build ruby with zlib support
body: <p>I didn't know that installing ruby is such a pain
  After lot of trouble with curl certificate, I   installed the rvm using the methods mentioned in the rvm site also with lot of help from stackoverflow questions.
  Now I am trying to install rails using the gems command</p>
  
  <pre><code>gem install rails
  </code></pre>
  
  <p>but I always get this error</p>
  
  <pre><code>   ERROR:  Loading command: install (LoadError)
     cannot load such file -- zlib
     ERROR:  While executing gem ... (NameError)
     uninitialized constant Gem::Commands::InstallCommand
  </code></pre>
  
  <p>I did follow every thing mentioned here <a href="https://rvm.beginrescueend.com/packages/zlib/" rel="nofollow">https://rvm.beginrescueend.com/packages/zlib/</a>
  and also as a mentioned in a stackoverflow post </p>
  
  <p>I did install all the tools as required by the requirements</p>
  
  <pre><code>   yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
  </code></pre>
  
  <p>But still I get this error. When I looked at the build log for ruby under
          /usr/local/rvm/log/ruby-1.9.3-p125/configure.log
  I see this error </p>
  
  <pre><code>  [2012-04-07 01:13:44]  ./configure --prefix=/usr/local/rvm/rubies/ruby-1.9.3-p125 --enable-shared --disable-install-doc --with-zlib --with-opt-dir=/usr/local/rvm/usr --with-libyaml
    configure: WARNING: unrecognized options: --with-zlib, --with-libyaml
  </code></pre>
  
  <p>Is the rvm broken  ? or is there a problem while building the ruby src.</p>
  
  <p>Note: I am running fedora 14</p>