[Ecls-list] ECL with XAMPP

Márcio Faustino marciombfaustino at gmail.com
Sun Feb 20 09:51:11 UTC 2011


Hi,

I'm trying to use a Lisp file as a CGI script (using XAMPP 1.7.3, ECL 11.1.1, Windows 7 64-bit), but I'm struggling with some problems.

First I had to add these lines to "C:\xampp\apache\conf\httpd.conf":

AddHandler cgi-script .lisp
ScriptInterpreterSource Registry-Strict

After that I could use this:

#!/usr/bin/ecl -shell
(format t "Content-Type: text/plain~%~%")
(princ "test")

Now the issue I'm having is when I try to load Quicklisp. The first problem was that "(user-homedir-pathname)" returns "/" so it cannot find where Quicklisp is really installed, which in my case is "C:\Users\marcio\quicklisp". I then tried to hardcode the path:

#!/usr/bin/ecl -shell
(format t "Content-Type: text/plain~%~%")
(load "/Users/marcio/quicklisp/setup.lisp")

Which outputs:

;;; Loading "C:/Users/marcio/quicklisp/setup.lisp"
;;; Loading #P"C:/usr/bin/asdf.fas"
;;; Loading #P"C:/usr/bin/cmp.fas"
;;; Internal error:
;;;   ** Unable to find include directory

I guess this has something to do with "(compiler::ecl-include-directory)", but I'm not really sure where to go from here. Any suggestions?

Thanks,
-- 
Márcio Faustino




More information about the ecl-devel mailing list