Skip to content

Dumping an image of Clog + clog:run-demo 1 #74

Answered by aykaramba
aykaramba asked this question in Q&A
Discussion options

You must be logged in to vote

Okay here is the working solution for dumping a clog image to an executable for total noobs:

  1. Start sbcl: user@computer >> sbcl

  2. Quickload clog: (ql:quickload :clog)

  3. Copy / paste this code to your sbcl command prompt:

(sb-ext:save-lisp-and-die
"clog"
:compression t
;; this is the main function:
:toplevel (lambda ()
;; tell clog to run one of the demos
;; you can use (clog:run-demo 1) or (clog:run-demo 2), etc.
(clog:run-demo 3)

     ;; this part handles the threading errors
     (handler-case (bt:join-thread (find-if (lambda (th)
					      (search "hunchentoot" (bt:thread-name th)))
					    (bt:all-threads)))
       ;; Catch a user's C-c
       (#+sbcl sb-sys:interactive-interrupt…

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@aykaramba
Comment options

Comment options

You must be logged in to vote
7 replies
@aykaramba
Comment options

@aykaramba
Comment options

@aykaramba
Comment options

@kaeland
Comment options

@smvamse
Comment options

Comment options

You must be logged in to vote
2 replies
@kaeland
Comment options

@smvamse
Comment options

Answer selected by aykaramba
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants