Yeah!<div><br></div><div>Also, ought not the web server have a high-verbosity logging mode that would tell you exactly what is going on?</div><div><br><br><div class="gmail_quote">2013/2/14 Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 2013-02-14, at 4:35 AM, Herr <<a href="mailto:misterherr@freenet.de">misterherr@freenet.de</a>> wrote:<br>
<br>
> Am 13.02.2013 15:24, schrieb Eduardo Costa:<br>
>> I don't think that the problem is not finding gsi. After all, the server finds any<br>
> other Scheme, Common Lisp, Forth, etc. but fails to work with gsi. Do you think it<br>
> could be a name crash? However, I tried to compile gambit as a standalone, with<br>
> another name, and it did not work. By the way, I tried the complete path, as you<br>
> suggested, and it didn't work either.<br>
>> From: Herr <<a href="mailto:misterherr@freenet.de">misterherr@freenet.de</a>><br>
>> To: <a href="mailto:gambit-list@iro.umontreal.ca">gambit-list@iro.umontreal.ca</a><br>
>> Sent: Wednesday, February 13, 2013 7:08 AM<br>
>> Subject: Re: [gambit-list] Difficulty with Gambit<br>
>><br>
>> Am <a href="tel:08.02.2013%2004" value="+40802201304">08.02.2013 04</a>:47, schrieb Eduardo Costa:<br>
>>> One year or so ago, I contacted this list about running Gambit on Linux (I compiled<br>
>>> the programs on Zorin/Ubuntu, and tried to run them on a choice of Linux hosting<br>
>>> services). My programs work perfectly well in about every Scheme compiler, except<br>
>>> Gambit. For instance, they run on Bigloo, Racket, Larceny, Ikarus, Vicare, Chez, to<br>
>>> name a few. The programs also run on  Dorai's Scheme to Common Lisp compiler. I tried<br>
>>> the Scheme to Common Lisp compiler with SBCL, CMUCL, CLISP, ECL, etc. However, they<br>
>>> don't run on Gambit. Although the production code is quite complex (for instance, it<br>
>>> includes Serrano's sqlite clone), I wrote a very simple example in order to show what<br>
>>> the problem is:<br>
>>><br>
>>> #! ./gsi -:d-<br>
>>> (display "Content-type: text/html")<br>
>>> (newline)<br>
> --cut<br>
>>> (newline)<br>
>>><br>
>>> The error is:<br>
>>><br>
>>> Internal Server Error<br>
>>><br>
>>> The server encountered an internal error or misconfiguration and was unable to<br>
>>> complete your request.<br>
>>><br>
>><br>
>> I think the server does not find gsi. Do it like this, works fine here:<br>
>><br>
>> #!/usr/bin/env gsi<br>
>> (display "Content-Type: text/html")<br>
><br>
> My first reaction: Please reply to the list, or the gmane newsgroup.<br>
><br>
> Then I think, this is clearly an installation problem, but from here I can not tell<br>
> which.<br>
><br>
> The web server executes CGI programs in a separate process, so there is little<br>
> linkage to web server internals. If you can execute shell scripts in the same cgi-bin<br>
> directory then apache config is okay.<br>
><br>
> I get an Internal Server Error with apache when a cgi script is not executable. This<br>
> can be missing x mode bits, interpreter from #!/-line not found, or even architecture<br>
> mismatch 32/64 bit (here the error on the command line is file not found). Turn off<br>
> apparmor and selinux.<br>
<br>
</div></div>Here's something else you can try.  Replace your script with:<br>
<br>
#! /bin/sh<br>
echo "Content-type: text/html"<br>
echo<br>
echo "<pre>"<br>
/usr/bin/env<br>
/usr/bin/env gsi -:d- -e '(display "test\n")'<br>
echo $?<br>
echo "</pre>"<br>
<br>
This will allow you to see what is the content of the environment variables and if any error messages are reported by gsi.<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br></div>