[Openmcl-devel] asdf-install directions on wiki need updated

Andrew P. Lentvorski, Jr. bsder at mail.allcaps.org
Fri Feb 4 08:43:08 UTC 2005


On Feb 3, 2005, at 10:49 PM, Dan Knapp wrote:

> On Feb 1, 2005, at 7:51 AM, Andrew P. Lentvorski, Jr. wrote:
>
>> http://openmcl.clozure.com/openmcl-wiki/HintsForASDFandOpenmcl
>>
>> Could someone update the directions?
>
>   I'd like to, but I haven't actually gotten asdf-install working  
> myself; I install asdf packages
> manually when I need to.  I don't know that it's necessarily difficult  
> to get working, but I
> haven't had time.
>

Oh.  I just assumed that everybody else had it working.

Bear in mind that I am on one of the CVS versions, so here goes:

In my openmcl-init.lisp I have:

(require 'asdf)
(pushnew "/home/alpha/ccl/tools/asdf-install/" asdf:*central-registry*  
:test #'equal)
(asdf:operate 'asdf:load-op 'asdf-install)

I have a file called .asdf-install in my home directory which has the  
following in it:
(setq asdf-install:*verify-gpg-signatures* nil)

Probably that can be moved into the openmcl-init.lisp file in some way,  
but I haven't tried.

So, let's get xlunit:
$ openmcl
; loading system definition from
; /home/alpha/ccl/tools/asdf-install/asdf-install.asd into #<Package  
"ASDF0">
; registering #<SYSTEM ASDF-INSTALL #x63C9ADE> as ASDF-INSTALL
Welcome to OpenMCL Version (Beta: Darwin) 0.14.2-040925!
? (asdf-install:install 'xlunit)
Install where?
1) System-wide install:
    System in /usr/local/asdf-install/site-systems/
    Files in /usr/local/asdf-install/site/
2) Personal installation:
    System in /Users/andrewl/.asdf-install-dir/systems/
    Files in /Users/andrewl/.asdf-install-dir/site/
  --> 2
Downloading 8105 bytes from  
http://files.b9.com/xlunit/xlunit-latest.tar.gz to  
XLUNIT.asdf-install-tmp ...
Installing XLUNIT.asdf-install-tmp in  
/Users/andrewl/.asdf-install-dir/site/,/Users/andrewl/.asdf-install- 
dir/systems/
xlunit-0.6.2/
xlunit-0.6.2/result.lisp
xlunit-0.6.2/LICENSE
xlunit-0.6.2/listener.lisp
xlunit-0.6.2/textui.lisp
xlunit-0.6.2/xlunit.asd
xlunit-0.6.2/printer.lisp
xlunit-0.6.2/fixture.lisp
xlunit-0.6.2/README
xlunit-0.6.2/suite.lisp
xlunit-0.6.2/example.lisp
xlunit-0.6.2/package.lisp
xlunit-0.6.2/tcase.lisp
xlunit-0.6.2/assert.lisp
xlunit-0.6.2/tests.lisp
xlunit-0.6.2/Makefile

#P"/Users/andrewl/.asdf-install-dir/site/xlunit-0.6.2/"
; loading system definition from
; /Users/andrewl/.asdf-install-dir/systems/xlunit.asd into #<Package  
"ASDF3">
; registering #<SYSTEM XLUNIT #x6408876> as XLUNIT
; registering #<SYSTEM XLUNIT-TESTS #x643EE7E> as XLUNIT-TESTS
NIL
? (in-package #:xlunit)
#<Package "XLUNIT">

Okay, that worked, so let's try again without the install:
$ openmcl
; loading system definition from
; /home/alpha/ccl/tools/asdf-install/asdf-install.asd into #<Package  
"ASDF0">
; registering #<SYSTEM ASDF-INSTALL #x63C9ADE> as ASDF-INSTALL
Welcome to OpenMCL Version (Beta: Darwin) 0.14.2-040925!
? (in-package #:xlunit)
 > Error in process listener(1): There is no package named "XLUNIT" .
 > While executing: CCL::SET-PACKAGE
 > Type :GO to continue, :POP to abort.
 > If continued: Retry finding package with name "XLUNIT".
Type :? for other options.
1 > ^D
? ;; Errr, that didn't work
(asdf:operate 'asdf:load-op 'xlunit)
; loading system definition from
; /Users/andrewl/.asdf-install-dir/systems/xlunit.asd into #<Package  
"ASDF3">
; registering #<SYSTEM XLUNIT #x63F0D5E> as XLUNIT
; registering #<SYSTEM XLUNIT-TESTS #x640736E> as XLUNIT-TESTS
NIL
? (in-package #:xlunit)
#<Package "XLUNIT">
? ;; Much better

For me, the magic bit was figuring out about the 'asdf:load-op stuff.   
Since I use xlunit all the time, I just added the (asdf:operate  
'asdf:load-op 'xlunit) line to my openmcl-init.lisp file.

Feel free to cut, paste, mangle, etc. this mail anyway you wish for  
documentation or tutorials.

Hope this is useful,
-a







More information about the Openmcl-devel mailing list