
To install UCB Scheme download and double click on the downloaded file. This will force your Mac to mount the disk image as "STk" on your desktop. Once this happens please follow the directions supplied in the README.
STk-ucb1.3.6.dmg (2952 Kbytes)Errata: A typo in the "emacs.simply" file (in the Extras folder) will cause this error when you start emacs:
File Error: Cannot open load file, stkdbTo correct that, edit the line in emacs.simply
(concat stkhome "/share/emacs/lisp")))(concat stkhome "/share/emacs")))Running: The STk versions for different classes are installed in the /Applications/STk/bin/ directory. The STk versions are:
| stk-explorin | loads all UCB Scheme procedures including explorin.scm, for CS3S |
| stk-simply | loads all UCB Scheme procedures including simply.scm, for CS3 and CS61A |
| stk-grfx | loads UCB Scheme turtle graphics procedures, for CS9D and CS47B |
| stk | loads no UCB Scheme procedures, for CS9D and CS47B |
| Graphics mode: |
To run these within emacs and to use other graphical features (such
as turtle graphics and envdraw), you need to have XWindows (X11)
installed on your MacOSX system.
For MacOSX 10.3 and older, you should download X11 and install it from http://www.apple.com/support/downloads/x11formacosx.html. On newer versions of MacOSX, you must install X11 from the Installation CD (in "Optional Software") that came with your computer or operating system purchase. Then, open an "X11" terminal, and at the command line in that window, type "emacs&". In the EECS labs, you can load a version of stk into emacs. At home, you may have to modify your own .emacs file to do it. In the emacs window, type the 2 keys ESC-S at the same time to open STk in an emacs buffer. It loads the version of stk that is defined in your .emacs file. That file is typically in your home directory. The line that defines what is loaded by ESC-S is one of these: (setq scheme-program-name "stk-simply") (setq scheme-program-name "stk-explorin")If one of those are not there, you can add it and restart emacs. |
| Text mode: | If you don't need emacs or graphics, you can just open a MacOSX Terminal window and type the command you want, such as /Applications/STk/bin/stk. |
Click here for old Mac OS X packages which are no longer supported.
Go back to the main UCB Scheme site.