1

我的 quicklisp 脚本(如下所示)运行良好,但在 Apache2 中它不起作用。也许Apache2无法加载.clisprc.lisp文件?

我已经尝试安装名为lisp-cgi-utilsand的包pg

任何有关在 CGI 中包含 quicklisp 模块的建议将不胜感激。

#!/usr/bin/clisp
(load "/home/kimbom/.clisprc.lisp")
(with-open-file
(standard-output "/dev/null" :direction :output :if-exists :supersede)
(ql:quickload "lisp-cgi-utils")
(ql:quickload "pg"))

(format t "Content-Type: text/html; charset=UTF-8~%~%~%")
(princ (html:html-header "html.lisp example page"))

(princ (html:body
(html:h1 "test page for html.lisp package")
(html:h2 "lists")
(html:ul
(html:li "first entry")
(html:li "second entry"))
(html:p "a simple paragraph" " and more text")
(html:p '((class . "tester")) "another one")))
(princ (html:html-footer))

(bye)
4

0 回答 0