title: Connection Timed out in Installing rails
body: <p>I am using Ubuntu 14.04 LTS and ruby version is: 1.9.3p484</p>
  
  <p>While running the command </p>
  
  <p>sudo gem install rails -v 3.2.18,</p>
  
  <p>I am getting this error</p>
  
  <pre><code>WARNING:  Error fetching data: Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/specs.4.8.gz)
  WARNING:  Error fetching data: Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/latest_specs.4.8.gz)
  ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
      Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/gems/activesupport-3.2.18.gem)
  </code></pre>
  
  <p>Now when I checked for </p>
  
  <pre><code>rvm requirements
  </code></pre>
  
  <p>I am getting the error: <strong>Segmentation fault(core dumped)</strong></p>