From: daniel@... (Daniel Cremer) Date: 2004-03-13T17:59:35+09:00 Subject: Re: convincing a webhost to support ruby Mark Hubbart wrote in message news:<2BF2FE4C-7458-11D8-9C17-000502FDD5CC@mac.com>... > On Mar 12, 2004, at 6:14 AM, Daniel Cremer wrote: > > >> Building it myself in my HOME is a possibility. But AFAIK, there's no > >> way of running eruby as a standard cgi script. So I would also have to > >> install and run webrick or somesuch in my home. I would really rather > >> not have to do that. > >> > >> --Mark > > > > I was able to run eruby no problem as a standard CGI. Is there any > > reason why you believe it might be a problem ? > > Really? Could you share the general setup? For me, naming it > script.cgi, adding a shebang line and making it executable didn't work. > It would send the shebang line before I could send headers, so it > always failed. And that's the only way I knew... But I'm probably just > ignorant :) > Not ignorant at all I hope, that's how I set it up :). Sounds like either the host intentionally prevents it from working, or it's actually never running because there's a mistake in the path to eruby after the shebang. If eruby is running it shouldn't be sending the shebang. > > > If one would like to try ruby with a normal host and they have a linux > > box, I would recommend just building it on the local machine and > > uploading it to the cgi-bin of the webhost. At least for me, I've had > > no problems when I taken this approach. > > well, it would have to be compiled on their box. Theirs is i386-linux, > mine is powerpc-darwin (yeah, a mac), so... :) yeah, I can see the problem there :). I just wonder if a lot of new people to ruby would like to run eruby at an existing host and just haven't thought of trying to run it as cgi. I'll try testing it some more and add a page to the wiki. -Daniel