Next: , Up: QuickLisp—Common-Lisp Library Manager   [Contents][Index]


2.4.1 QuickLisp Installation and Setup

To get started with the Quicklisp beta, download and load:

https://beta.quicklisp.org/quicklisp.lisp

Then, to install and configure SLIME for QuickLisp:

(ql:quickload "quicklisp-slime-helper")

The following shell script will install quicklisp for your user account using Clozure Common Lisp (CCL), update its init file, and configure it to use SLIME8:

[[ ! -d ".quicklisp" ]] && { \
echo "Installing quicklisp...";
mkdir -v ./.quicklisp;
curl -O https://beta.quicklisp.org/quicklisp.lisp;
# The installation script is expecting the user to hit the <RETURN> key;
# as well, the @@texinfo:@opt{@@--batch@@texinfo:}@@ expects an EOF marker.
# The use of ~echo~ seems to satisfy both requirements.
echo | \
ccl -Q --batch \
       --load  quicklisp.lisp \
       --eval '(quicklisp-quickstart:install :path "./.quicklisp")' \
       --eval '(ql:add-to-init-file)' \
       --eval '(ql:quickload "quicklisp-slime-helper")';
rm quicklisp.lisp;
echo "Done installing.";
} || { echo "Quicklisp is already installed."; }

Listing 2.1: Shell Script to Install Quicklisp Using CCL


Footnotes

(8)

Other implementations will have slightly different commandline requirements.