如何让 quicklisp 加载 Practical Common Lisp 一书中的代码?
How do I get quicklisp to load code from the book Practical Common Lisp?
code that accompanies the book Practical Common Lisp includes asdf files. How do I use Quicklisp要加载这段代码吗?
- 将http://www.gigamonkeys.com/book/practicals-1.0.3.tar.gz的内容复制到
~/quicklisp/local-projects/
- 在 REPL
调用 (ql:register-local-projects)
- 从所需章节加载代码(仅测试第 25 章)
CL-USER> (ql:quickload "id3v2")
To load "id3v2":
Load 1 ASDF system:
id3v2
; Loading "id3v2"
[package com.gigamonkeys.macro-utilities].........
[package com.gigamonkeys.binary-data].............
[package com.gigamonkeys.pathnames]...............
[package com.gigamonkeys.id3v2]...............
("id3v2")
CL-USER> (in-package "COM.GIGAMONKEYS.ID3V2")
ID3V2> (show-tag-header "/path/to/xyz.mp3")
...
code that accompanies the book Practical Common Lisp includes asdf files. How do I use Quicklisp要加载这段代码吗?
- 将http://www.gigamonkeys.com/book/practicals-1.0.3.tar.gz的内容复制到
~/quicklisp/local-projects/
- 在 REPL 调用
- 从所需章节加载代码(仅测试第 25 章)
(ql:register-local-projects)
CL-USER> (ql:quickload "id3v2") To load "id3v2": Load 1 ASDF system: id3v2 ; Loading "id3v2" [package com.gigamonkeys.macro-utilities]......... [package com.gigamonkeys.binary-data]............. [package com.gigamonkeys.pathnames]............... [package com.gigamonkeys.id3v2]............... ("id3v2") CL-USER> (in-package "COM.GIGAMONKEYS.ID3V2") ID3V2> (show-tag-header "/path/to/xyz.mp3") ...