如何在CGI中快速打包

时间:2016-02-18 02:52:28

标签: apache2 cgi clisp quicklisp

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

我尝试安装名为lisp-cgi-utilspg的包。

任何关于在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)

0 个答案:

没有答案