Skip to content

Can’t figure out how to run Kenzo #127

Description

@guillaumebrunerie

I’m trying to run Kenzo but it doesn’t seem to work. This is probably an issue with me rather than with Kenzo, as I don’t know much about Lisp (in particular how packages/systems/modules work) but I would welcome any help.

I have installed SBCL (locally, as I do not have admin rights), cloned the Kenzo repository, and simlinked Kenzo to ~/.local/share/common-lisp/source/Kenzo.
Now, from the command line I run sbcl, then in the prompt (require :asdf) and then (require :kenzo). The first time it did a lot of things, and now it only returns
("abbreviations" "macros" "various" "classes" "combinations" "chain-complexes" "chcm-elementary-op" "effective-homology" "homology-groups" "searching-homology" ...)
I guess that’s ok, and that it has been loaded.

But now how do I use it?
I tried running the first line of 00_Overview.ipynb in the sbcl prompt, namely (def m23 (moore 2 3)), but it fails with the following error:

* (def m23 (moore 2 3))
; in: DEF M23
;     (DEF M23 (MOORE 2 3))
; 
; caught STYLE-WARNING:
;   undefined function: DEF
; 
; caught WARNING:
;   undefined variable: M23

;     (MOORE 2 3)
; 
; caught STYLE-WARNING:
;   undefined function: MOORE
; 
; compilation unit finished
;   Undefined functions:
;     DEF MOORE
;   Undefined variable:
;     M23
;   caught 1 WARNING condition
;   caught 2 STYLE-WARNING conditions

debugger invoked on a UNBOUND-VARIABLE in thread #<THREAD "main thread" RUNNING {10028DE963}>: The variable M23 is unbound.

If I try (moore 2 3), I get
debugger invoked on a UNDEFINED-FUNCTION in thread #<THREAD "main thread" RUNNING {10028DE963}>: The function COMMON-LISP-USER::MOORE is undefined.

I also tried things like (kenzo:moore 2 3) but then I get
debugger invoked on a SB-INT:SIMPLE-READER-PACKAGE-ERROR in thread #<THREAD "main thread" RUNNING {10028DE963}>: Package KENZO does not exist.Stream: #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {1000189D43}>

What am I missing?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions