Re: ASDF organization



Bob Felts wrote:
Pascal Costanza <pc@xxxxxxxxx> wrote:

Bob Felts wrote:
In my slow journey along the Lisp highway, I now need to start using
ASDF. Any recommendations on how to organize ASDF packages, e.g. put
them in /usr/local/lisp/asdf? What has worked for you? What works well
with multiple Lisps (e.g. sbcl and LispWorks)?
I load ASDF in my initialization files, and afterwards a compiled version of a file containing the following code.

Could you show me how you do this?

Here is my initialization file for SBCL:

(require "ASDF")
(load #P"/Users/costanza/lisp/asdf/.sbcl/fix-asdf")

Here is an excerpt of the one for LispWorks:

#+lispworks4.3
(progn
(load #P"/Users/costanza/lisp/asdf/.lispworks4.3/asdf")
(load #P"/Users/costanza/lisp/asdf/.lispworks4.3/fix-asdf"))
#+lispworks4.4
(progn
(load #P"/Users/costanza/lisp/asdf/.lispworks4.4/asdf")
(load #P"/Users/costanza/lisp/asdf/.lispworks4.4/fix-asdf"))
#+lispworks5.0
(progn
(load #P"/Users/costanza/lisp/asdf/.lispworks5.0/asdf")
(load #P"/Users/costanza/lisp/asdf/.lispworks5.0/fix-asdf"))

Similar for all the other systems. So load asdf first (depending on which implementation you are using it may simply be already there, or you may have to load it explicitly), then load fix-asdf (the compiled file I have talked about in my previous posting).

If you encounter a problem loading fix-asdf, this probably means that you have a new version of the respective CL implementation. This is easy to resolve: Just start the CL implementation in the folder that contains fix-asdf, and then say (compile-file "fix-asdf"). Exit your lisp again, and put the file in the right folder.

Does this help?


Pascal

--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/
.



Relevant Pages