2
votes

I have just started out programming in Common Lisp using GNU clisp-2.49 (compiled from source) as my implementation on OS X 10.10 Yosemite. I've written a simple "Hello World" program as follows:

(EXT:SAVEINITMEM "test"
  :INIT-FUNCTION 'main
  :EXECUTABLE t)
(defun main ()
  (format t "Hello World!")
  (EXT:EXIT))

When I run:

$ clisp test.lisp
$ ./test

I get the error:

module 'syscalls' requires package OS.

Please help, I'm totally clueless :)

1
Usually you load and compile your code, then write image. You write image before makeing your interpreted main function. Thus when running you should get an error about main being undefined since you have saved the image of a virgin clisp. I almost never do this. If you just add (main) to the bottom and remove the EXT stuff you run it with the first command you do. You can also add a shebang and make it executable. - Sylwester

1 Answers

1
votes

This is a bug in clisp. Please report it on SF. Note that this works as it should on Ubuntu with the vanilla distribution.