<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>ottoyes (OT元旦)</title>
    <link>https://ruby-china.org/ottoyes</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>bundle install 一直报错</title>
      <description>&lt;p&gt;在 gemfile 里加了 factory_girl_rails 后，bundle intall 报以下错
Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Operation timed out -connect(2) (&lt;a href="http://rubygems.org/gems/factory_girl-4.2.0.gem" rel="nofollow" target="_blank"&gt;http://rubygems.org/gems/factory_girl-4.2.0.gem&lt;/a&gt;)
An error occurred while installing factory_girl (4.2.0), and Bundler cannot continue.
Make sure that &lt;code&gt;gem install factory_girl -v '4.2.0'&lt;/code&gt; succeeds before bundling.&lt;/p&gt;

&lt;p&gt;然后&lt;code&gt;gem install factory_girl&lt;/code&gt;就出现
WARNING:  Error fetching data: Errno::ETIMEDOUT: Operation timed out - connect(2)(&lt;a href="http://ruby.taobao.org/latest_specs.4.8.gz" rel="nofollow" target="_blank"&gt;http://ruby.taobao.org/latest_specs.4.8.gz&lt;/a&gt;)
ERROR:  Could not find a valid gem 'factory_girl' (&amp;gt;= 0) in any repository
ERROR:  Possible alternatives: factory_girl&lt;/p&gt;

&lt;p&gt;已经使用了 taobao 镜像，而且 gemfile 的 source 也改成了 taobao&lt;/p&gt;

&lt;p&gt;我就试了&lt;code&gt;gem update --system&lt;/code&gt;
WARNING:  Error fetching data: Errno::ETIMEDOUT: Operation timed out - connect(2)(&lt;a href="http://ruby.taobao.org/specs.4.8.gz" rel="nofollow" target="_blank"&gt;http://ruby.taobao.org/specs.4.8.gz&lt;/a&gt;)
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    Could not find a valid gem 'rubygems-update' (1.8.25) locally or in a repository&lt;/p&gt;

&lt;p&gt;最近装 pg,annotate 也都出现了同样的问题&lt;/p&gt;</description>
      <author>ottoyes</author>
      <pubDate>Thu, 07 Feb 2013 18:48:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/8644</link>
      <guid>https://ruby-china.org/topics/8644</guid>
    </item>
  </channel>
</rss>
