From: Jeremy McAnally Date: 2008-11-17T14:23:24+09:00 Subject: Re: Why does tmail stop my CGI script form working? What user is the script running as? The environment may not be setup properly and therefore unable to find gems etc. --Jeremy On Sun, Nov 16, 2008 at 11:06 PM, Chad Perrin wrote: > On Mon, Nov 17, 2008 at 01:45:05PM +0900, Chad Perrin wrote: >> On Mon, Nov 17, 2008 at 01:16:25PM +0900, Ryan Davis wrote: >> > >> > On Nov 16, 2008, at 20:05 , Chad Perrin wrote: >> > >> > >So, basically, the script just seems to be broken from the moment I >> > >require the TMail library, but it breaks "silently" so I don't get any >> > >errors -- but everything up to that point seems to work just fine >> > >(including other require statements, before or after the content type >> > >line). >> > >> > what does the web server's error log say? I doubt it dies silently. >> > you're prolly just not looking in the right spot. >> >> I guess I should have been clearer: >> >> It fails without any error that shows up in the browser. Since it's >> shared hosting, and I'm unable to even *see* an Apache log anywhere, I >> figure I must not have direct access to the web server logs. >> >> I've tried wrapping the require statement in some exception handling >> code, too, and that doesn't seem to give me anything useful either. > > Whoops -- I had a typo in my exception handling code. I've fixed it, so > it looks like this: > > begin > require 'tmail' > rescue Exception => e > puts "#{e.class} : #{e}" > end > > . . . and the output in the browser now looks like this: > > LoadError : no such file to load -- tmail > > . . . but, as I said before, it works from the shell, so I know tmail is > on the system and accessible. > > -- > Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ] > Quoth Sterling Camden: "The Church doesn't want people calling for > inquisitions." > -- http://jeremymcanally.com/ http://entp.com/ http://omgbloglol.com My books: http://manning.com/mcanally/ http://humblelittlerubybook.com/ (FREE!)