2
votes

I am currently reading Peter Seibel's book "Practical Common Lisp" and am on Chapter 26 : web programming. On page 366, it says that "the first step is to load the AllegroServe code into your Lisp image. In Allegro, you can simply type (require :aserve). In other Lisps (or in Allegro), you can load PortableAllegroServe by loading the file INSTALL.lisp at the top of the portableaserve directory tree. Below were the 2 responses when I typed them in :

  1. When I typed (require :aserve) , the response was "NIL" .
  2. When I typed INSTALL.LISP, the response was Error: Attempt to take the value of the unbound variable 'INSTALL.LISP'. [condition type: UNBOUND VARIABLE}

I have posted this question both on LispForum and comp.lang.lisp but have not received any satisfactory reply, and Peter Seibel hasn't replied to my email. Would appreciate it if anyone can advise how to correct this error.

Thanks a lot!

2

2 Answers

3
votes

You need to run INSTALL.lisp from command line, not from your Lisp prompt. But the simplest way would be to get it with quicklisp: (ql:quickload "aserve")

EDIT:

Also notice, that the filename is INSTALL.lisp (extension in lowercase).

To load from command-line with SBCL run sbcl --load INSTALL.lisp (in the directory, holding the file).

Or you can load it from your Lisp prompt with full path: (load "<path-to-directory>/INSTALL.lisp")

2
votes

If you have your current directory correctly set, then at the Lisp prompt:

(load "install.lisp")