{"id":756,"date":"2014-11-09T11:01:46","date_gmt":"2014-11-09T17:01:46","guid":{"rendered":"http:\/\/dev.iachieved.it\/iachievedit\/?p=756"},"modified":"2014-11-09T11:01:46","modified_gmt":"2014-11-09T17:01:46","slug":"gem-install-hangs","status":"publish","type":"post","link":"https:\/\/dev.iachieved.it\/iachievedit\/gem-install-hangs\/","title":{"rendered":"gem install hangs"},"content":{"rendered":"<p>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 <a href=\"http:\/\/stackoverflow.com\/questions\/4304438\/gem-install-failed-to-build-gem-native-extension-cant-find-header-files\">failed to build gem native extension<\/a> on a new system.<\/p>\n<p>If you&#8217;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&#8217;t responding.  Check your source list:<\/p>\n<pre>\r\ngem source\r\n*** CURRENT SOURCES ***\r\n\r\nhttp:\/\/rubygems.org\/\r\nhttp:\/\/aserveryoucantreach.gems.org\/\r\n<\/pre>\n<p>Edit your <code>~\/.gemrc<\/code> and get rid of any troublesome sources and try again.<\/p>\n<pre>\r\n$ gem install cocoapods\r\n...\r\n14 gems installed\r\n<\/pre>\n<p>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 <code>gem install<\/code> by using the <code>--verbose<\/code> option:<\/p>\n<pre>\r\n$ gem install cocoapods --verbose\r\nHEAD http:\/\/rubygems.org\/latest_specs.4.8.gz\r\n302 Moved Temporarily\r\nHEAD http:\/\/production.s3.rubygems.org\/latest_specs.4.8.gz\r\n200 OK\r\n...\r\nSuccessfully installed cocoapods-0.34.4\r\n1 gem installed\r\n<\/pre>\n<p>You&#8217;ll notice right away if <code>gem install<\/code> hangs, and which source server is giving you trouble.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;re trying to install a new Ruby gem and it hangs (with no feedback as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-756","post","type-post","status-publish","format-standard","hentry","category-miscellaneous"],"_links":{"self":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/756"}],"collection":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":5,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"predecessor-version":[{"id":761,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/756\/revisions\/761"}],"wp:attachment":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}