{"id":7,"date":"2007-12-21T13:55:33","date_gmt":"2007-12-21T18:55:33","guid":{"rendered":"http:\/\/unixmonkey.net\/blog\/?p=7"},"modified":"2007-12-21T13:55:33","modified_gmt":"2007-12-21T18:55:33","slug":"updating-broken-rubygems-to-101-on-ubuntu-710-gusty","status":"publish","type":"post","link":"https:\/\/unixmonkey.net\/?p=7","title":{"rendered":"Updating Broken Rubygems to 1.0.1 on Ubuntu 7.10 Gusty"},"content":{"rendered":"<p>If you tried to update rubygems today like me, its possible you got hit with a nasty error message running gem after the successful update to rubygems-1.0.1.<\/p>\n<pre>root@localhost ~:#gem -v\n\/usr\/bin\/gem:23: uninitialized constant Gem::GemRunner (NameError)<\/pre>\n<p>gem_runner needs loading, so lets fix that by adding a require at the top of\/usr\/local\/lib\/site-ruby\/1.8\/rubygems.rb<\/p>\n<pre>...\nrequire 'rubygems\/rubygems_version'\nrequire 'rubygems\/defaults'\nrequire 'rubygems\/gem_runner' ## add this line\nrequire 'thread'\n...<\/pre>\n<p>There we go, now lets try:<\/p>\n<pre>\nroot@localhost ~:# gem -v\n1.0.1<\/pre>\n<p>Hooray! Working rubygems!<\/p>\n<p><font color=\"#ff0000\">Update:<\/font><\/p>\n<p>I found this is due to a problem with just the apt packages, and re-downloading and installing the tar.gz from rubyforge will also solve the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you tried to update rubygems today like me, its possible you got hit with a nasty error message running gem after the successful update to rubygems-1.0.1. root@localhost ~:#gem -v \/usr\/bin\/gem:23: uninitialized constant Gem::GemRunner (NameError) gem_runner needs loading, so lets fix that by adding a require at the top of\/usr\/local\/lib\/site-ruby\/1.8\/rubygems.rb &#8230; require &#8216;rubygems\/rubygems_version&#8217; require &#8216;rubygems\/defaults&#8217; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,14,17],"tags":[30],"_links":{"self":[{"href":"https:\/\/unixmonkey.net\/index.php?rest_route=\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/unixmonkey.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unixmonkey.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unixmonkey.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unixmonkey.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7"}],"version-history":[{"count":0,"href":"https:\/\/unixmonkey.net\/index.php?rest_route=\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/unixmonkey.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unixmonkey.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unixmonkey.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}