It occurred to me that I might have accidentally installed rake twice - once as a package and once as a gem. 'which rake' turned up /usr/ bin/rake, which is version 0.8.1, so I ran 'apt-get remove rake', then reran 'gem install rake'. Apparently the gem doesn't install a link / usr/bin, so that didn't change anything. Then I remembered that I had the same problem with rails, and had solved it by adding /var/lib/gems/ 1.8/bin to my path, so I checked in that dir and found rake, and tested it - version 0.8.7. Jumping out of root and back to my normal user account, 'which rake' now turned up the one in the gems tree. So that's fixed.
Next, I learned the -v option for gem and replaced rails 2.3.3 with 2.3.2. Finally, I deleted my previous apps and built a brand new one (hobo pod, script/generate hobo_migration). This time there was no rake error, so that's progress. But when I ran the server, I encountered the same hang problem. Each time I refresh, it takes 1-2 minutes to finish loading. I tested it in IE as well, just to make sure it wasn't Firefox being unreliable (as it is known to be). On Sep 3, 8:27 pm, odigity <[email protected]> wrote: > So your recommendations are one upgrade and one downgrade? :) I'll > get on the Rails downgrade in a moment. I just started playing with > gem to see about updating rake (new to gem and ruby also), and found > the list option. Here's what it said: > > r...@dell:~# gem list --local > > *** LOCAL GEMS *** > > ...bunch of gems snipped... > rake (0.8.7) > test-spec (0.10.0) > > That's bizarre, right? gem says 0.8.7 is installed, but rake -V says > 0.8.1? > > On Sep 3, 8:01 pm, Matt Jones <[email protected]> wrote: > > > Your version of Rake looks a little long in the tooth (current is > > 0.8.7); that may explain the error message in the migration generator. > > > I'd also recommend that you stay on 2.3.2 - there appear to be a few > > issues with 2.3.3 (not necessarily Hobo-related). > > > --Matt Jones > > > On Sep 3, 2009, at 7:44 PM, odigity wrote: > > > > If anything demonstrates how much I've atrophied from not touching > > > code for two years, it's the fact that I didn't remember to include > > > version numbers. > > > > o...@dell:~/source/pod$ uname -a > > > Linux dell 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC > > > 2009 i686 GNU/Linux > > > > o...@dell:~/source/pod$ script/about > > > About your application's environment > > > Ruby version 1.8.7 (i486-linux) > > > RubyGems version 1.3.1 > > > Rack version 1.0 > > > Rails version 2.3.3 > > > Active Record version 2.3.3 > > > Action Pack version 2.3.3 > > > Active Resource version 2.3.3 > > > Action Mailer version 2.3.3 > > > Active Support version 2.3.3 > > > > o...@dell:~/source/pod$ rake -V > > > rake, version 0.8.1 > > > > On Sep 3, 7:37 pm, Matt Jones <[email protected]> wrote: > > >> Couple things: > > > >> - what versions are you running? (ruby / Rubygems / Rails / Rake / > > >> Hobo); it's hard to figure out what's going on otherwise > > > >> - the POD tutorial is out of date; you'll likely want the Agility > > >> tutorial instead athttp://cookbook.hobocentral.net > > > >> - Hobo apps tend to be a little slow in development mode; all of the > > >> models are recompiled every time (by route reloading), amongst other > > >> things. In production mode, things are quite different. > > > >> Hope this helps! > > > >> --Matt Jones > > > >> On Sep 3, 2009, at 7:27 PM, odigity wrote: > > > >>> Hey, brand new user here. I'm walking though the POD tutorial > > >>> (http:// > > >>> hobocentral.net/pod-tutorial/). I installed the hobo gem, created a > > >>> hobo app called pod, and ran script/generate hobo_migration. That's > > >>> where I encountered the first hiccup. It looked like it did > > >>> everything it was supposed to, but the end of the output looked like > > >>> this: > > > >>> -- create_table(:users) > > >>> -> 0.0179s > > >>> == HoboMigration1: migrated (0.0182s) > > >>> ======================================== > > > >>> rake aborted! > > >>> undefined method `reenable' for <Rake::Task db:schema:dump => > > >>> [environment]>:Rake::Task > > > >>> (See full trace by running task with --trace) > > > >>> I ignored it, and ran script/server, then hit the website in > > >>> Firefox. > > >>> That's where I hit a real obstacle. Every time I load the page, the > > >>> browser sits there hanging for a minute or so before finally > > >>> deciding > > >>> it's done and displaying the page. This is on a brand new personal > > >>> linux server running nothing else. Also, I was playing with basic > > >>> rails apps immediately before (I'm a rails noob as well), and basic > > >>> rails was running fine. > > > >>> Any ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hobousers?hl=en -~----------~----~----~----~------~----~------~--~---
