<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><font class="Apple-style-span" face="arial" size="2">I need to use Scheme or Common Lisp for writing CGI scripts to process the XSL/XML protocols of a law firm. I started with Stalin, since it is easier to compile. The resulting exec files work perfectly well, and have small foot prints. However, the Stalin community does not seem to be very active. Besides this, Stalin is very slow to compile, and does not provide an interpreter. Therefore, I decided to switch to Gambit, Bigloo or SBCL. </font><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">Gambit has the advantage of providing native infix notation. However, it is not working in most commercial servers that the law firm uses. I am using the following command line to create the exec files:</div><div style="font-family: arial; font-size: 10pt;
 "><br></div><div style="font-family: arial; font-size: 10pt; ">$ ./gsc -exe gambtest.scm</div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">Where gambtest.scm contains the following lines:</div><div style="font-family: arial; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="arial" size="2">(display "Content-type: text/html")</font></div><div><font class="Apple-style-span" face="arial" size="2">(newline)</font></div><div><font class="Apple-style-span" face="arial" size="2">(newline)</font></div><div><font class="Apple-style-span" face="arial" size="2">(display </font></div><div><font class="Apple-style-span" face="arial" size="2">"<html></font></div><div><font class="Apple-style-span" face="arial" size="2">  <body></font></div><div><font class="Apple-style-span" face="arial" size="2">   <h1>Hello from
 Gambit</h1></font></div><div><font class="Apple-style-span" face="arial" size="2">  </body></font></div><div><font class="Apple-style-span" face="arial" size="2"></html>" )</font></div><div><font class="Apple-style-span" face="arial" size="2">(newline)</font></div><div style="font-family: arial; font-size: 10pt; "><br></div></div><div><div><span class="Apple-style-span" style="font-family: arial; font-size: 13px; ">It generates an executable file that works perfectly well in my machine, but not in the servers that host the pages of the law firm. </span></div></div><div style="font-family: arial; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="arial" size="2">$ ./gambtest </font></div><div><font class="Apple-style-span" face="arial" size="2">Content-type: text/html</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span"
 face="arial" size="2"><html></font></div><div><font class="Apple-style-span" face="arial" size="2">  <body></font></div><div><font class="Apple-style-span" face="arial" size="2">   <h1>Hello from Gambit</h1></font></div><div><font class="Apple-style-span" face="arial" size="2">  </body></font></div><div><font class="Apple-style-span" face="arial" size="2"></html></font></div><div style="font-family: arial; font-size: 10pt; "><br></div></div><div style="font-family: arial; font-size: 10pt; ">For reasons that I cannot fathom, the law firm uses many hosting providers. I also tried to use Gambit as a scripting language. The result is the same.  In the case of Bigloo, the problem lies in the fact that it uses dynamic libraries incompatible with the server.  I cannot understand why this happens, since Stalin works even when linked to dynamic libraries. By the way, I prefer the scripting
 solution, since the static exec files are very large.</div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">I installed gambit in the hosting provider, making sure that both gsi and gsi-script have permission to execute. I also tested the scripts with Dorai Sitaram's Scheme in Common Lisp to make sure that everything is working fine.  Here is the script (that works in my machine):</div><div style="font-family: arial; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="arial" size="2">#! ./gsi-script -:d-</font></div><div><font class="Apple-style-span" face="arial" size="2"><br></font></div><div><font class="Apple-style-span" face="arial" size="2">(display "Content-type: text/html")</font></div><div><font class="Apple-style-span" face="arial" size="2">(newline)</font></div><div><font class="Apple-style-span" face="arial" size="2">(newline)</font></div><div><font
 class="Apple-style-span" face="arial" size="2">(display </font></div><div><font class="Apple-style-span" face="arial" size="2">"<html></font></div><div><font class="Apple-style-span" face="arial" size="2">  <body></font></div><div><font class="Apple-style-span" face="arial" size="2">   <h1>Hello from Gambit</h1></font></div><div><font class="Apple-style-span" face="arial" size="2">  </body></font></div><div><font class="Apple-style-span" face="arial" size="2"></html>" )</font></div><div><font class="Apple-style-span" face="arial" size="2">(newline)</font></div></div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; "><br></div><div style="font-family: arial; font-size: 10pt; ">Here is the message that I get from Hostgator both for the scripting version and the compiled version:</div><div style="font-family: arial; font-size: 10pt;
 "><br></div><div style="font-family: arial; font-size: 10pt; "><h1 style="font-family: 'Times New Roman'; ">Internal Server Error</h1><p style="font-family: 'Times New Roman'; font-size: medium; ">The server encountered an internal error or misconfiguration and was unable to complete your request.</p><p style="font-family: 'Times New Roman'; font-size: medium; ">Please contact the server administrator, webmaster@advogadosmg.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p><p style="font-family: 'Times New Roman'; font-size: medium; ">More information about this error may be available in the server error log.</p><p style="font-family: 'Times New Roman'; font-size: medium; ">Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p><hr style="font-family: 'Times New Roman'; font-size: medium; "><address style="font-family: 'Times
 New Roman'; font-size: medium; ">Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 mod_fcgid/2.3.6 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1 Server at advogadosmg.org Port 80</address><address style="font-family: 'Times New Roman'; font-size: medium; "><br></address><address style="font-family: 'Times New Roman'; font-size: medium; "><br></address></div></td></tr></table>