Apologies for the formatting, but this is the error I get when I try to start up mongrel. The app does work under webrick, so I''m not real sure what''s going on here. Thanks for any insight into what''s going on. -j ** Starting Mongrel listening at 0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in `register'': undefined method `resolve'' for nil:Mongrel::URIClassifier (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:850:in `uri'' from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:1018:in `debug'' from /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:1016:in `debug''r -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20060702/4ca78b63/attachment.bin
I probably should have mentioned that I''m using ruby 1.8.4 on Ubuntu linux with rails 1.1 installed via rubygem. -j On Sun, Jul 02, 2006 at 09:56:49PM -0500, jro at codegrinder.com wrote:> > Apologies for the formatting, but this is the error I get when I try to start > up mongrel. The app does work under webrick, so I''m not real sure what''s > going on here. Thanks for any insight into what''s going on. > > -j > > ** Starting Mongrel listening at 0.0.0.0:3000 > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:666:in `register'': > undefined method `resolve'' for nil:Mongrel::URIClassifier (NoMethodError) > from > /usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/mongrel.rb:850:in-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20060703/e4dcffe3/attachment.bin
On Jul 3, 2006, at 10:47 AM, jro at codegrinder.com wrote:> > I probably should have mentioned that I''m using ruby 1.8.4 on > Ubuntu linux > with rails 1.1 installed via rubygem.i think the standard Ubuntu Ruby package is inexplicably lacking... This may not be the problem, but make sure you also have the ruby1.8- dev package (via universe). sebastian
Hey, Whenever you are on a Debian based system and you get errors saying that functions are missing, it means you don''t have any of the build tools installed. You''ll need to install all ruby related items, not just "apt-get install ruby". There''s ri, irb, ruby1.8-dev, and lots of other packages. Once you get all that installed, install mongrel again and it should work. On Mon, 2006-07-03 at 10:47 -0500, jro at codegrinder.com wrote:> I probably should have mentioned that I''m using ruby 1.8.4 on Ubuntu linux > with rails 1.1 installed via rubygem. > > -j-- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Thanks guys. make wasn''t installed.. whoops. I have no idea how I got that far w/o it being there. Go ubuntu. -j On Mon, Jul 03, 2006 at 07:18:00PM -0400, Zed Shaw wrote:> Hey, > > Whenever you are on a Debian based system and you get errors saying that > functions are missing, it means you don''t have any of the build tools > installed. You''ll need to install all ruby related items, not just > "apt-get install ruby". There''s ri, irb, ruby1.8-dev, and lots of other > packages. > > Once you get all that installed, install mongrel again and it should > work. > > > > On Mon, 2006-07-03 at 10:47 -0500, jro at codegrinder.com wrote: > > I probably should have mentioned that I''m using ruby 1.8.4 on Ubuntu linux > > with rails 1.1 installed via rubygem. > > > > -j > > -- > Zed A. Shaw > http://www.zedshaw.com/ > http://mongrel.rubyforge.org/ > http://www.railsmachine.com/ -- Need Mongrel support? > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20060703/c3fdae1c/attachment-0001.bin
I''m also getting the "undefined method resolve" error. I installed ruby from source on solaris x86. In a previous email Zed said> You''ll need to install all ruby related items, not just "apt-get > install ruby". There''s ri, irb, ruby1.8-dev, and lots of other > packages.I''ve looked at the configure script for when I compile ruby and it doesn''t have any options for "build tools." My solaris system has all of the usual unix build tools. When I installed mongrel I used --test with gem and it had errors; where do I find the output/errors of the tests?> # gem install --include-dependencies --rdoc --ri --test mongrel > Building native extensions. This could take a while... > make: ./install-sh: Command not found > make: *** [/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib/http11.so] Error 127 > ruby extconf.rb install --include-dependencies --rdoc --ri --test mongrel > checking for main() in -lc... yes > creating Makefile > > make > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c http11.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c http11_parser.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_cleanup.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_delete.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_grow_node_free_list.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_init.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_insert.c > gcc -fPIC -O3 -pipe -I. -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I/usr/local/lib/ruby/1.8/i386-solaris2.10 -I. -c tst_search.c > gcc -Wl,-G -L''/usr/local/lib'' -Wl,-R''/usr/local/lib'' -o http11.so http11.o http11_parser.o tst_cleanup.o tst_delete.o tst_grow_node_free_list.o tst_init.o tst_insert.o tst_search.o -lc -ldl -lcrypt -lm -lc > > make install > ./install-sh -c -m 0755 http11.so /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3/lib > > make clean > Successfully installed mongrel, version 0.3.13.3 > Installing ri documentation for mongrel-0.3.13.3... > Installing RDoc documentation for mongrel-0.3.13.3... > ...keep Gem? [Yn] y > ERROR: 46 tests, 9 assertions, 0 failures, 60 errorsAlso note for future versions that the installer for mongrel seems to not work as well with the solaris make as it does with the gnu make; I received an error on the make install part until I added a symbolic link to gnu make in my ~/bin directory. If possible, an easy way to fix this is to test for the existence of gmake in $PATH and use that instead of make (solaris installs gnu make as gmake). Otherwise, document this wart. Also note the "command not found" error in the first part of the above output. I don''t know if that''s a problem or what. Thanks for your help.
Hi Rusty, On Thu, 2006-07-27 at 15:45 -0700, Rusty Wright wrote:> I''m also getting the "undefined method resolve" error. I installed ruby > from source on solaris x86. In a previous email Zed said > > > You''ll need to install all ruby related items, not just "apt-get > > install ruby". There''s ri, irb, ruby1.8-dev, and lots of other > > packages.There''s other folks who use Solaris and have cranked out packages. Check the archives.> Also note for future versions that the installer for mongrel seems to > not work as well with the solaris make as it does with the gnu make; I > received an error on the make install part until I added a symbolic link > to gnu make in my ~/bin directory. If possible, an easy way to fix this > is to test for the existence of gmake in $PATH and use that instead of > make (solaris installs gnu make as gmake). Otherwise, document this wart. > > Also note the "command not found" error in the first part of the above > output. I don''t know if that''s a problem or what. > > Thanks for your help.Yeah, that''s actually a problem in the mkmf stuff Ruby has. I think I might be able to cook up a fix for it, but not sure exactly how to go about it. I''ll ask around and see how the other Solaris folks did this. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Sorry, I''m not sure what you mean by "There''s other folks who use Solaris and have cranked out packages. Check the archives." I tried installing ruby from sunfreeware.com but still get the exact same error. The only thing I found in the archives was someone using Sun''s c compiler, but I''m using gcc. It looks to me like http11.so is not being built correctly. I figured out that the "resolve" routine that it''s looking for is in it. When I do a "file" on all of the .so files in the /usr/local/lib/ruby directory all of the .so files are the right type *except* http11.so; for some reason it''s a DOS executable when it should be the same as the others (ELF 32-bit blah blah blah). See the following output of the file command:> file ` find . -name ''*.so'' -print ` > ./1.8/i386-solaris2.10/bigdecimal.so: ELF 32-bit LSB dynamic lib 80386 Version 1 [FPU], dynamically linked, not stripped, no debugging information available > ./1.8/i386-solaris2.10/curses.so: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available > (many more lines like this) > ./site_ruby/1.8/i386-solaris2.10/readline.so: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available > ./gems/1.8/gems/mongrel-0.3.13.3/lib/http11.so: DOS executable (EXE)Still a lost and clueless newbie in Ruby & Rails land. Thanks again. Zed Shaw wrote:> Hi Rusty, > > On Thu, 2006-07-27 at 15:45 -0700, Rusty Wright wrote: >> I''m also getting the "undefined method resolve" error. I installed ruby >> from source on solaris x86. In a previous email Zed said >> >>> You''ll need to install all ruby related items, not just "apt-get >>> install ruby". There''s ri, irb, ruby1.8-dev, and lots of other >>> packages. > > There''s other folks who use Solaris and have cranked out packages. > Check the archives. > >> Also note for future versions that the installer for mongrel seems to >> not work as well with the solaris make as it does with the gnu make; I >> received an error on the make install part until I added a symbolic link >> to gnu make in my ~/bin directory. If possible, an easy way to fix this >> is to test for the existence of gmake in $PATH and use that instead of >> make (solaris installs gnu make as gmake). Otherwise, document this wart. >> >> Also note the "command not found" error in the first part of the above >> output. I don''t know if that''s a problem or what. >> >> Thanks for your help. > > Yeah, that''s actually a problem in the mkmf stuff Ruby has. I think I > might be able to cook up a fix for it, but not sure exactly how to go > about it. > > I''ll ask around and see how the other Solaris folks did this. > >
Ok, more sleuthing. I downloaded the file mongrel-0.3.13.3.gem and it''s tar files inside of tar files and I extracted one named data.tar and it has a lib directory and in it is an http11.so and the unix file command says that it''s a DOS executable. So it looks to me like when I run the gem install it''s just copying that http11.so and not the one that gets compiled from source by gem. Zed Shaw wrote:> Hi Rusty, > > On Thu, 2006-07-27 at 15:45 -0700, Rusty Wright wrote: >> I''m also getting the "undefined method resolve" error. I installed ruby >> from source on solaris x86. In a previous email Zed said >> >>> You''ll need to install all ruby related items, not just "apt-get >>> install ruby". There''s ri, irb, ruby1.8-dev, and lots of other >>> packages. > > There''s other folks who use Solaris and have cranked out packages. > Check the archives. > >> Also note for future versions that the installer for mongrel seems to >> not work as well with the solaris make as it does with the gnu make; I >> received an error on the make install part until I added a symbolic link >> to gnu make in my ~/bin directory. If possible, an easy way to fix this >> is to test for the existence of gmake in $PATH and use that instead of >> make (solaris installs gnu make as gmake). Otherwise, document this wart. >> >> Also note the "command not found" error in the first part of the above >> output. I don''t know if that''s a problem or what. >> >> Thanks for your help. > > Yeah, that''s actually a problem in the mkmf stuff Ruby has. I think I > might be able to cook up a fix for it, but not sure exactly how to go > about it. > > I''ll ask around and see how the other Solaris folks did this. > >
Ok, hopefully my final missive on this saga. I saw the setup.rb file in the files extracted from the data.tar and on a whim ran ruby on that, which produced an http11.so file which I moved into the ruby gems directory (clobbering the DOS one) and now it works. Zed Shaw wrote:> Hi Rusty, > > On Thu, 2006-07-27 at 15:45 -0700, Rusty Wright wrote: >> I''m also getting the "undefined method resolve" error. I installed ruby >> from source on solaris x86. In a previous email Zed said >> >>> You''ll need to install all ruby related items, not just "apt-get >>> install ruby". There''s ri, irb, ruby1.8-dev, and lots of other >>> packages. > > There''s other folks who use Solaris and have cranked out packages. > Check the archives. > >> Also note for future versions that the installer for mongrel seems to >> not work as well with the solaris make as it does with the gnu make; I >> received an error on the make install part until I added a symbolic link >> to gnu make in my ~/bin directory. If possible, an easy way to fix this >> is to test for the existence of gmake in $PATH and use that instead of >> make (solaris installs gnu make as gmake). Otherwise, document this wart. >> >> Also note the "command not found" error in the first part of the above >> output. I don''t know if that''s a problem or what. >> >> Thanks for your help. > > Yeah, that''s actually a problem in the mkmf stuff Ruby has. I think I > might be able to cook up a fix for it, but not sure exactly how to go > about it. > > I''ll ask around and see how the other Solaris folks did this. > >
On Thu, 2006-07-27 at 23:32 -0700, Rusty Wright wrote:> Ok, hopefully my final missive on this saga. I saw the setup.rb file in > the files extracted from the data.tar and on a whim ran ruby on that, > which produced an http11.so file which I moved into the ruby gems > directory (clobbering the DOS one) and now it works.Ah, yeah I know what''s going on *now*. Those aren''t supposed to get included. Ok, thanks, I''ll fix that up on the next release. Thanks for tracking this down Rusty. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?
Got the same thing here. Fixed on a reinstall of mongrel. I didn''t dig in and see if the Win32 executable was my problem too. Think I fumbled-fingered getting the wrong gem - getting the Win32 instead of the "Ruby" one? (can I put a plugin for trimming the the list of available mongrels at rubyforge? :-) ) Jason On Jul 28, 2006, at 4:49 AM, Zed Shaw wrote:> On Thu, 2006-07-27 at 23:32 -0700, Rusty Wright wrote: >> Ok, hopefully my final missive on this saga. I saw the setup.rb >> file in >> the files extracted from the data.tar and on a whim ran ruby on that, >> which produced an http11.so file which I moved into the ruby gems >> directory (clobbering the DOS one) and now it works. > > Ah, yeah I know what''s going on *now*. Those aren''t supposed to get > included. > > Ok, thanks, I''ll fix that up on the next release. Thanks for tracking > this down Rusty. > > > -- > Zed A. Shaw > http://www.zedshaw.com/ > http://mongrel.rubyforge.org/ > http://www.railsmachine.com/ -- Need Mongrel support? > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users >-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jason Young -- Systems Manager, eXtension http://about.extension.org/wiki/Jason_Young ______________________________________
As long as you write the plugin. ;-) Jason Young wrote:> (can I put a plugin for trimming the the list of available mongrels > at rubyforge? :-) )
On Fri, 2006-07-28 at 10:09 -0400, Jason Young wrote:> (can I put a plugin for trimming the the list of available mongrels > at rubyforge? :-) )Oh man that annoys me so much. I''ve tried disabling them, deleting them, everything. I''ve got to contact the rubyforge folks and have them just do it manually. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need Mongrel support?