{"id":373,"date":"2011-11-28T22:43:08","date_gmt":"2011-11-28T13:43:08","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/wordpress\/?p=373"},"modified":"2011-11-28T22:43:08","modified_gmt":"2011-11-28T13:43:08","slug":"uninitialized-constant-rakedsl-%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=373","title":{"rendered":"uninitialized constant Rake::DSL \u30a8\u30e9\u30fc"},"content":{"rendered":"<p>[code]<br \/>\nC:project&gt;rake db:migrate<br \/>\n(in C:\/project)<br \/>\nrake aborted!<br \/>\nuninitialized constant Rake::DSL<br \/>\n[\/code]<\/p>\n<p>\u3069\u3046\u3084\u3089rake \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u826f\u308d\u3057\u304f\u306a\u3044\u3089\u3057\u3044\u3002<br \/>\ngem list rake \u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8abf\u3079\u308b\u3002<\/p>\n<p>[code]<br \/>\nC:worksWhoocus_R&gt;gem list rake<br \/>\n*** LOCAL GEMS ***<br \/>\nrake (0.9.2.2, 0.8.7)<br \/>\n[\/code]<\/p>\n<p>\u3067\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eGemfile \u306b\u4e0b\u8a18\u3092\u8ffd\u8a18\u3057\u3066\u3001bundle install<\/p>\n<p>[code]<br \/>\ngem &quot;rake&quot;, &quot;0.8.7&quot;<br \/>\n[\/code]<\/p>\n<p>[code]<br \/>\nC:project&gt;bundle install<br \/>\nFetching source index for http:\/\/rubygems.org\/<br \/>\nYou have requested:<br \/>\n  rake = 0.8.7<br \/>\nThe bundle currently has rake locked at 0.9.2.2.<br \/>\nTry running `bundle update rake`<br \/>\n[\/code]<\/p>\n<p>\u307e\u305f\u6012\u3089\u308c\u305f\u306e\u3067\u3001bundle update rake<br \/>\n[code]<br \/>\nC:worksWhoocus_R&gt;bundle update rake<br \/>\nFetching source index for http:\/\/rubygems.org\/<br \/>\nUsing rake (0.8.7)<br \/>\nUsing multi_json (1.0.3)<br \/>\nUsing activesupport (3.1.3)<br \/>\nUsing builder (3.0.0)<br \/>\nUsing i18n (0.6.0)<br \/>\nUsing activemodel (3.1.3)<br \/>\nUsing erubis (2.7.0)<br \/>\nUsing rack (1.3.5)<br \/>\nUsing rack-cache (1.1)<br \/>\nUsing rack-mount (0.8.3)<br \/>\nUsing rack-test (0.6.1)<br \/>\nUsing hike (1.2.1)<br \/>\nUsing tilt (1.3.3)<br \/>\nUsing sprockets (2.0.3)<br \/>\nUsing actionpack (3.1.3)<br \/>\nUsing mime-types (1.17.2)<br \/>\nUsing polyglot (0.3.3)<br \/>\nUsing treetop (1.4.10)<br \/>\nUsing mail (2.3.0)<br \/>\nUsing actionmailer (3.1.3)<br \/>\nUsing arel (2.2.1)<br \/>\nUsing tzinfo (0.3.31)<br \/>\nUsing activerecord (3.1.3)<br \/>\nUsing activeresource (3.1.3)<br \/>\nUsing ansi (1.4.1)<br \/>\nUsing bundler (1.0.21)<br \/>\nUsing coffee-script-source (1.1.3)<br \/>\nUsing execjs (1.2.9)<br \/>\nUsing coffee-script (2.2.0)<br \/>\nUsing rack-ssl (1.3.2)<br \/>\nUsing json (1.6.2)<br \/>\nUsing rdoc (3.11)<br \/>\nUsing thor (0.14.6)<br \/>\nUsing railties (3.1.3)<br \/>\nUsing coffee-rails (3.1.1)<br \/>\nUsing jquery-rails (1.0.19)<br \/>\nUsing mysql2 (0.3.10)<br \/>\nUsing rails (3.1.3)<br \/>\nUsing sass (3.1.10)<br \/>\nUsing sass-rails (3.1.5)<br \/>\nUsing turn (0.8.2)<br \/>\nUsing uglifier (1.1.0)<br \/>\nYour bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.<br \/>\n[\/code]<\/p>\n<p>[code]<br \/>\nC:project&gt;rake db:migrate<br \/>\n==  CreateMembers: migrating ==================================================<br \/>\n&#8212; create_table(:members)<br \/>\n   -&gt; 0.3906s<br \/>\n==  CreateMembers: migrated (0.3906s) =========================================<br \/>\n[\/code]<\/p>\n<p>\u3046\u307e\u304f\u884c\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code] C:project&gt;rake db:migrate (in C:\/project) rake aborted! uninitialized constant Rake::DSL [\/code] \u3069\u3046\u3084 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[11,14,4],"tags":[],"class_list":["post-373","post","type-post","status-publish","format-standard","hentry","category-mysql","category-ruby","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=373"}],"version-history":[{"count":0,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/373\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}