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 :)
mainbeing 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 theEXTstuff you run it with the first command you do. You can also add a shebang and make it executable. - Sylwester