我的quicklisp脚本(如下所示)运行良好,但在Apache2中它不起作用。也许Apache2无法加载.clisprc.lisp
文件?
我尝试安装名为lisp-cgi-utils
和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)