gem install hangs
Death, taxes, forgetting how to fix that annoying issue you always run in to when starting a new project. They are inevitable. I rank this one up there with failed to build gem native extension on a new system.
If you’re trying to install a new Ruby gem and it hangs (with no feedback as to what is going on), nine times out of ten you have a gem source server that isn’t responding. Check your source list:
*** CURRENT SOURCES ***
~/.gemrc and get rid of any troublesome sources and try again.
$ gem install cocoapods
14 gems installed
Moreover, if you ever find yourself in this situation again (which you will!) you can get a clue as to what is going on with
gem install by using the
$ gem install cocoapods --verbose
302 Moved Temporarily
Successfully installed cocoapods-0.34.4
1 gem installed
You’ll notice right away if
gem install hangs, and which source server is giving you trouble.