jchavez at rojo.net
2006-May-30 16:46 UTC
[Mongrel] Error in mongrel_rails script with Cygwin/Mongrel/Rails
Hi, I am experiencing an error in the mongrel_rails script on a pc under cygwin/mongrel/rails. My installation details and error are as follows: With some guidance from various blogposts out there, I installed Cygwin on a Windows XP box followed by: Ruby 1.8.4(via cygwin setup), Gems (0.8.1 via ruby install.rb), Mongrel .3.12.4 (via gems), Rake 0.7.1(via gems, GemPlugin (via gems), Rails (via gems -include-dependencies which installed dependencies but failed to install rails itself ) then, Rails (via gems w/out dependencies clause)to get rails. Using mongrel via simpletest.rb works just fine but when I attempt to run mongrel_rails, I get the following error: $ mongrel_rails /usr/lib/ruby/gems/1.8/gems/gem_plugin-0.2.1/lib/gem_plugin.rb:109:in `load'': uninitialized constant Gem::SourceIndex (N ameError) from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:191 from /usr/bin/mongrel_rails:19 Which I think is on this line in the script: GemPlugin::Manager.instance.load "mongrel" => GemPlugin::INCLUDE, "rails" => GemPlugin::EXCLUDE Perhaps I missed installing a component? I''m not sure what the issue could be from this error. Any ideas where I might look? Thanks in advance, jchavez P.S. I attempted to build mongrel before installing via gems but didn''t finish. Not sure if this would affect this. Also, I had posted this to the FAQ thread in the ruby forge forum but it seemed to be not the right place given the title. I''ve posted asking the admin to remove. Sorry for the bad post.
jchavez at rojo.net
2006-May-31 17:55 UTC
[Mongrel] Error in mongrel_rails script with Cygwin/Mongrel/Rails
Hi, I seemed to have solved the problem. For everyone''s benefit, what I did was I uninstalled all the rails gems, re-installed gems (version 0.8.11 tgz from rubyforge) and reinstalled rails with --include-dependences (which is now an option) and everything works perfectly. Nice to see mongrel and rails starting up smoothly on cygwin. Next up is configuring an app with the db backend in which I saw a few concerns on sqlite on various posts. thx. jchavez at rojo.net wrote:> Hi, > > I am experiencing an error in the mongrel_rails script on a pc under > cygwin/mongrel/rails. My installation details and error are as follows: > > With some guidance from various blogposts out there, I installed Cygwin > on a Windows XP box followed by: > Ruby 1.8.4(via cygwin setup), > Gems (0.8.1 via ruby install.rb), > Mongrel .3.12.4 (via gems), > Rake 0.7.1(via gems, > GemPlugin (via gems), > Rails (via gems -include-dependencies which installed dependencies but > failed to install rails itself ) then, > Rails (via gems w/out dependencies clause)to get rails. > > Using mongrel via simpletest.rb works just fine but when I attempt to > run mongrel_rails, I get the following error: > > $ mongrel_rails > /usr/lib/ruby/gems/1.8/gems/gem_plugin-0.2.1/lib/gem_plugin.rb:109:in > `load'': uninitialized constant Gem::SourceIndex (N > ameError) > from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.12.4/bin/mongrel_rails:191 > from /usr/bin/mongrel_rails:19 > > Which I think is on this line in the script: > GemPlugin::Manager.instance.load "mongrel" => GemPlugin::INCLUDE, > "rails" => GemPlugin::EXCLUDE > > Perhaps I missed installing a component? I''m not sure what the issue > could be from this error. Any ideas where I might look? > > Thanks in advance, > jchavez > > P.S. I attempted to build mongrel before installing via gems but didn''t > finish. Not sure if this would affect this. > > Also, I had posted this to the FAQ thread in the ruby forge forum but it > seemed to be not the right place given the title. I''ve posted asking the > admin to remove. Sorry for the bad post. > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >