在 gemfile 里加了 factory_girl_rails 后,bundle intall 报以下错
Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Operation timed out -connect(2) (http://rubygems.org/gems/factory_girl-4.2.0.gem)
An error occurred while installing factory_girl (4.2.0), and Bundler cannot continue.
Make sure that gem install factory_girl -v '4.2.0'
succeeds before bundling.
然后gem install factory_girl
就出现
WARNING: Error fetching data: Errno::ETIMEDOUT: Operation timed out - connect(2)(http://ruby.taobao.org/latest_specs.4.8.gz)
ERROR: Could not find a valid gem 'factory_girl' (>= 0) in any repository
ERROR: Possible alternatives: factory_girl
已经使用了 taobao 镜像,而且 gemfile 的 source 也改成了 taobao
我就试了gem update --system
WARNING: Error fetching data: Errno::ETIMEDOUT: Operation timed out - connect(2)(http://ruby.taobao.org/specs.4.8.gz)
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find a valid gem 'rubygems-update' (1.8.25) locally or in a repository
最近装 pg,annotate 也都出现了同样的问题