From: Michael Neumann Date: 2001-12-27T23:46:50+09:00 Subject: [ruby-talk:29475] Re: Can't require extensions using eRuby 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. * See the Web server's error_log file (e.g. /var/log/httpd/error_log). There should be the reason for the fault. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de