From: Tanner Burson Date: 2006-02-07T00:32:55+09:00 Subject: Re: [ANN] Mongrel HTTP Library 0.2.2 (Serving Directories) ------=_Part_30659_15310706.1139239961260 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 2/3/06, zedshaw@zedshaw.com wrote: > > > On 2/3/06, zedshaw@zedshaw.com wrote: > >> > >> Did you make sure to require rubygems first? Here's my install: > > > > Nope, different error now. (Other gems work just fine, so I don't thin= k > > it's my gem install) > > > > irb(main):001:0> require 'rubygems' > > =3D> true > > irb(main):002:0> require 'mongrel' > > NameError: uninitialized constant Mongrel > > from ./mongrel.rb:4 > > from > > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > > `require' > > from (irb):2 > > irb(main):003:0> > > Are you sure that you don't have any previous versions of Mongrel > installed via source? Or is ./mongrel.rb a file you're working on that's > getting loaded when you do require? The reason I ask is "from > ./mongrel.rb:4" means that you're trying to use Mongrel modules at line 4= . > When I look at line 4 of the mongrel.rb library it's a "require > 'stringio'" line. So, that error has to be coming from somewhere else. > > Make sure you can identify all the "mongrel.rb" files on your system and > that you're not loading the wrong one on accident. Hah, interesting side note. Don't name the test file mongrel.rb when attempting to test a file with a library named mongrel.rb. Well that was a= n interesting bug to track down. Thanks Zed A. Shaw > http://www.zedshaw.com/ > > > > > -- =3D=3D=3DTanner Burson=3D=3D=3D tanner.burson@gmail.com http://tannerburson.com <---Might even work one day... ------=_Part_30659_15310706.1139239961260--