gem install hangs

| | 0 Comments| 11:01 AM

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:

Edit your ~/.gemrc and get rid of any troublesome sources and try again.

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 --verbose option:

You’ll notice right away if gem install hangs, and which source server is giving you trouble.

Leave a Reply

Your email address will not be published. Required fields are marked *