title: How to install Rails application on ubuntu?
body: <p>While installing, some errors are displayed. The command I am using is:</p>
  
  <pre><code>sudo gem install rails --include-dependencies
  </code></pre>
  
  <p>or</p>
  
  <pre><code>sudo gem install rails --no-rdoc --no-ri
  </code></pre>
  
  <p>In both cases, it is the same error. I think my rubygems may not be installed properly?</p>
  
  <pre><code>ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
  </code></pre>
  
  <p>I have installed ruby-1.9.2-p0 and rubygems-1.3.7</p>
  
  <p>One more thing: Do I have to <code>cd</code> into the ruby or rubygems directory and then install rails or can I do it from default directory?</p>