From: Jonas Delfs Date: 2001-12-28T01:50:44+09:00 Subject: [ruby-talk:29476] Re: Can't require extensions using eRuby Michael Neumann wrote: > Jonas Delfs wrote: > > Hi Michael > > > > > Jonas Delfs wrote: > > > > Hi - > > > > > > > > I've installed eRuby on my Apache on my WinXP machine. > > > > It works perfectly, just except from the fact that I can't include > > (require) > > > > extensions (which really makes it unusable). I have a perfectly correct > > > > .rhtml-file only containing 'require "cgi"' (for example) but the script > > > > does never get executed; my browser is just loading and loading... > > (scripts > > > > that do not require any files works as supposed). > > > > The output of $LOAD_PATH is the same running eRuby and Ruby normally; > > and > > > > client-side GUI scripts works just fine (also when require'ing files), > > so > > > > anyone having any idea on what the problem might be? > > > > > > > > I wild guess could be that eRuby can't find the requested file, of some > > > > reason. - does this sound reasonable? > > > > > > Could you post the eRuby file that produces the troubles? > > > > As mentioned, my test-file can contain only 'require "cgi"'... > > > > > Have you tried it with a simple "Hello World" version, or is the program > > you tried > > > more complex, possibly using sessions? > > > > No, my examples are very simple, but, as mentioned, without any require-call > > in the file there's no problems parsing and getting the result. > > > > Any clues? > > * Print out $LOAD_PATH (in your eruby file) to see if it contains the correct directories. I have already done that. And it does contain the right directories. > * See the Web server's error_log file (e.g. /var/log/httpd/error_log). > There should be the reason for the fault. No it doesn't. :( But it doesn't ever time out, just loading and loading... Hope you guys haven't lost your hope for me. :) -- Mvh./Best Regards Jonas Delfs, http://delfs.dk