[Lisp]How to use the ASDF for Clisp on Ubuntu

ASDF is a tool for describing how source files are organized: what depends on which and when.It is roughly what Common Lisp hackers use to build software where C hackers would use say GNU Make.ASDF stands for Another System Definition Facility, in the continuity of the Lisp DEFSYSTEM of yore.Here I use the cl-ppcre as an example.

1.Create a folder named cl(You can name it as you like) , so the path looks like ~\cl

2.Create a folder under the cl, name it as asdf

3.You can on download the asdf.lisp or pull the latest files from git repository(git clone git://common-lisp.net/projects/asdf/asdf.git). Put this file under the ~/cl/asdf

4.Create a folder named links,and create another folder named as libs. Both of them are under ~/cl.

5.Download the cl-ppcre, unzip it under the ~/cl/libs

6.Create two shortcuts for those two *.asd file of cl-ppcre, and put them under the ~/cl/links

7.Open the Clisp from ~/cl

8.(load "asdf/asdf.lisp")

9.(push "~/cl/libs" asdf:*central-registry*)

10.(asdf:oos 'asdf:load-op :cl-ppcre)

11.Now, you can use the cl-ppcre

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again! This site is using OpenAvatar based on