Am 08.02.2013 04:47, schrieb Eduardo Costa:
One year or so ago, I contacted this list about running Gambit on Linux (I compiled the programs on Zorin/Ubuntu, and tried to run them on a choice of Linux hosting services). My programs work perfectly well in about every Scheme compiler, except Gambit. For instance, they run on Bigloo, Racket, Larceny, Ikarus, Vicare, Chez, to name a few. The programs also run on Dorai's Scheme to Common Lisp compiler. I tried the Scheme to Common Lisp compiler with SBCL, CMUCL, CLISP, ECL, etc. However, they don't run on Gambit. Although the production code is quite complex (for instance, it includes Serrano's sqlite clone), I wrote a very simple example in order to show what the problem is:
#! ./gsi -:d- (display "Content-type: text/html") (newline) (newline) (display "<html><body>Teste:") (newline) (display "<h1>Hello</h1>") (newline) (display "</html></body>") (newline)
The error is:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
I think the server does not find gsi. Do it like this, works fine here:
#!/usr/bin/env gsi (display "Content-Type: text/html") (newline) (newline) (display "<h1>no Problem with gsi</h1>") (newline) (display "<p>Just go ahead.</p>") (newline)
/Str.