鶏口牛前

国内有数の広告費使ってるかもな人です。国内というかアジアかも。

gemがインストールできなかった

windowsruby開発の環境を整えている最中。

gemをインストールしようとしたらできなかったので、作業メモ。

$ gem install factory_girl
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. - connect(2) for "au-m.rubygems.org" port 443 (https://api.rubygems.org/quick/Marshal.4.8/factory_girl-4.5.0.gemspec.rz)


↓この記事の内容が参考になった。
terminal - Cannot install sprockets gem - ruby on rails - Stack Overflow
http://stackoverflow.com/questions/27674702/cannot-install-sprockets-gem-ruby-on-rails

$ gem source --remove https://rubygems.org/
$ gem source --add https://tokyo-m.rubygems.org/

これで解決。