Go to the first, previous, next, last section, table of contents.
This chapter describes how to install MIT Scheme release 7.4. The release is supported under several different operating systems: Unix, OS/2, and Windows. Read the section detailing the installation for the operating system that you are using.
If you are installing on an HP 9000 series 700 or 800, you should also read section HP-PA Installation.
We will use as an example the installation for GNU/Linux. The installation for other Unix systems is similar. If you are installing on an HP 9000 series 700 or 800, see also section HP-PA Installation.
MIT Scheme is distributed as a compressed `tar' file. The tar file contains a single directory, called `dist-7.4', and that directory contains subdirectories `bin', `etc', and `lib'. The `bin' subdirectory contains two executable files, `scheme' and `bchscheme'. The `etc' subdirectory contains several files that are used during the installation process. The `lib' subdirectory contains several files and subdirectories that Scheme uses while it is executing.
The goal of the installation is to put the executable files in a directory where they will be executed as commands, and to put the library files in some convenient place where Scheme can find them.
gzip -cd linux.tar.gz | tar xvf -If you do not have the `gzip' program: we have built executables of this program for each of the machines that we support. Either use the executable that we have already built, or else get the gzip sources (from us or from numerous other sources) and build it yourself.
cd dist-7.4The easiest way to install the files is to use the "install.sh" shell script that we've provided in the distribution. You will need to edit that script to tell it where and how you want Scheme installed. If you want to do something more complicated, or if the script can't easily be made to work for your system, use the script as a guide to installation.
./install.sh
schemeat the command line (if you use the C shell, you may have to type `rehash' before `scheme' will be recognized).
If you are using an HP 9000 series 700/800 computer (often called an HP Precision Architecture machine, or HP-PA for short), read this section. You should also read section Unix Installation.
Scheme has built-in code that flushes the instruction and data caches of your machine in certain circumstances. This code is sensitive to your computer's model, because each model has different cache hardware.
This distribution contains a database, called `hppacach.mod', that describes the cache structure for each model of computer. As of this writing, that database contains entries for the following models:
705, 710, 712, 715, 720, 725, 730, 735, 750, 755, 770, 816, 834, 835, 850, 867, 877
If you have a model that is not in the database, Scheme will not run; instead it will print an error message informing you of this fact, and stop. If this happens, you must add an entry to the database. This must be done once, at installation, for each new model.
Here is the procedure for updating the database:
cd /usr/local/lib/mit-scheme ./hppacach -update hppacach.modThe reason that you must be super-user is that `hppacach' needs to read the device `/dev/kmem' to get the information that it needs. Normally, `/dev/kmem' is readable only by the super-user, or by users in group
sys
. Thus, becoming super-user is the easiest way
to read this information. An alternative method for doing this is to
change the permissions of the `hppacach' program so that it is in
group sys
, and to turn on its "set group ID on exec" permission
bit, but since this also requires you to be super-user, you might as
well just execute the program as the super-user.
Please note that you must execute this program on the computer whose
model you wish to add to the database. Also, if you wish to add several
models to the database, you must execute the program once on each model.
If you have several computers that are all of the same model, you need
only update the database once from one of the computers; thereafter all
of the other computers of that model will work.
cd /usr/local/lib/mit-scheme ./hppacach -print hppacach.mod > model-7xx(If you have previously updated the database, you do not need to be super-user to execute this command.) The resulting file, `model-7xx' in this example, is the model information for the machine that you executed the command on; it is C code that we can use to update our copy of the database. Send the model information for each new model to us by electronic mail at
bug-cscheme@zurich.ai.mit.edu
. Thanks!
This section describes how to install MIT Scheme on a machine running OS/2 2.1 or OS/2 Warp 3.0.
The Scheme files use about 20 megabytes of disk space when installed. An additional 5 megabytes of disk space is required during installation. After installation, you can reduce the amount of disk space required by deleting some files (see section Image Files).
MIT Scheme requires a fair amount of RAM to run well. We haven't tried running this on any machine with less than 36 megabytes, so we don't have any hard data on what the smallest practical amount of RAM is. However, for running Scheme under OS/2 Warp, 8 megabytes is probably the least you should consider, and 12 megabytes is probably comfortable. If you want to use the Scheme compiler or the Edwin text editor, you should have at least 16 megabytes of RAM.
MIT Scheme has been tested only on OS/2 Warp 3.0, but it should also run under OS/2 versions 2.1 and 2.11. It was compiled using IBM Visual Age C++ version 3.0 and the OS/2 Toolkit version 3.0.
After unpacking the ZIP file, `os2.zip', you will have these directories containing the following files:
Perform the following steps to install Scheme:
SET MITSCHEME_LIBRARY_PATH=C:\SCHDATA(Remember that you must reboot OS/2 after editing `config.sys' in order for the changes to take effect.) You can override the setting of this environment variable with the `-library' command-line option to Scheme, for example:
scheme -library d:\scheme\libIf you supply a `-library' option, it is not necessary to have the environment variable defined. For example, instead of editing `config.sys', you might create a `.cmd' file to invoke Scheme and pass it the `-library' option automatically.
etc\mkfolder c:\scheme\bin\scheme.exeThis will create a folder containing four icons, called `Scheme', `Edwin', `Liar', and `All', which correspond to the image files `runtime.com', `edwin.com', `compiler.com', and `all.com'. If you decide to delete any of the image files, you can delete the corresponding icons as well.
Scheme stores its runtime environment in a binary image file,
which is directly loaded into the Scheme process. An image file is a
snapshot of Scheme's memory taken at a particular time (you can create
your own image files using the disk-save
procedure; see section World Images). This distribution comes with four different image files, each
of which contains different mixes of programs. These image files are
stored in the `lib\' directory.
-large -constant 1600 -band all.com
You can delete any of these files that you aren't going to use (these image files take up a lot of disk space!). However, keep in mind that you need at least one image file to run Scheme at all.
Documentation for Scheme is included with this release, in the directory `doc\'. It consists of the following files:
Note: the User's Manual and Reference Manual are available in other forms, specifically: as PostScript files and as GNU Info files. These alternate forms of documentation may be obtained from our FTP site, `swiss-ftp.ai.mit.edu'.
This section documents several of the environment variables that Scheme uses, and gives an example for each one. These are the environment variables that must usually be defined when installing Scheme under OS/2. For complete documentation of all of the environment variables used by Scheme, see section Environment Variables.
Note that environment variables are usually defined in the OS/2 `config.sys' file. After editing the `config.sys' file, it is necessary to reboot OS/2 before the changes will take effect.
MITSCHEME_LIBRARY_PATH
SET MITSCHEME_LIBRARY_PATH=C:\SCHEME\LIB
MITSCHEME_INF_DIRECTORY
SET MITSCHEME_INF_DIRECTORY=C:\SCHEME\LIB\SRC
TEMP
SET TEMP=C:\TMP
HOME
SET HOME=C:\CPH
USER
SET USER=cph
SHELL
SET SHELL=C:\LOCAL\PROG\4OS2251\4OS2.EXE
This section describes how to install MIT Scheme on Windows 3.1, Windows 95 and Windows NT. Note that we have tested MIT Scheme only on Windows NT 3.10, Windows 3.1 and Windows 95. It should run under Windows NT 3.51. It was compiled using the Microsoft's MSTOOLS compiler that comes with Windows NT 3.10.
The Scheme files use about 20 megabytes of disk space when installed. An additional 5 megabytes of disk space is required during installation. After installation, you can reduce the amount of disk space required by deleting some files (see "Image Files" below).
MIT Scheme requires a fair amount of RAM to run well. We haven't tried running this on any machine with less than 32 megabytes, so we don't have any hard data on what the smallest practical amount of RAM is. However, for running Scheme under Windows 3.1, 8 megabytes is probably the least you should consider, and 12 megabytes is probably comfortable. If you want to use the Scheme compiler or the Edwin text editor, you should have at least 16 megabytes of RAM.
MIT Scheme is a 32-bit program. To run it on Windows 3.1 you need to install the Win32s compatibility package from Microsoft. You might already have Win32s on your machine if another 32-bit software package installed it. Win32s is provided in the self-extracting ZIP file `pw1118.exe'. Create a temporary directory. Copy `pw1118.exe' into the directory, change into the directory and run `pw1118'. This will create three files. Follow the instructions in `readme.txt'.
Create a directory where you would like Scheme to be installed. We suggest `c:\scheme'. From now on we will call this directory the Scheme root directory. Change to this directory and unpack `bin.zip':
unzip bin.zip
You will have the following files and directories:
If you do not get this directory structure you may be using a version of `unzip' that does not understand directory trees. In this case use the version of `unzip' that comes with MIT Scheme, in the same directory as the `.zip' files.
Perform the following steps to install Scheme:
etc\mk_comp.bat etc\mk_edwin.bat etc\mk_all.batThis will create the image files `lib\compiler.com', `lib\edwin.com', and `lib\all.com'. You may now delete the files `lib\compdel.com' and `lib\eddel.com'. If you are running Windows 3.1 you cannot run Scheme from the command line. You need to make a folder containing icons to run Scheme, as described below, and then run the following icons in turn: `Build COMPILER.COM band', `Build EDWIN.COM band' and `Build ALL.COM band'.
SET MITSCHEME_LIBRARY_PATH=D:\SCHDATAYou can override the setting of this environment variable with the `-library' command-line option to Scheme, for example:
scheme -library d:\schdataIf you always supply a `-library' option, it is not necessary to have the environment variable defined. For example, instead of editing `autoexec.bat', you might create a `.bat' file or a shortcut (icon) to invoke Scheme and pass it the `-library' option automatically.
bin\scheme -library lib -load etc\pmgrpOn Windows 3.1 you have to use the `File | Run..' menu option of the Program Manager or File Manager and enter the full paths:
c:\scheme\bin\scheme -library c:\scheme\lib -load c:\scheme\etc\pmgrp.scmThis will create a folder called `MIT Scheme 7.4.2' containing icons for running Scheme and for reading the help files. The icons called `Scheme', `Edwin', `Liar', and `All', correspond to running Scheme with the image files `runtime.com', `edwin.com', `compiler.com', and `all.com'. If you decide to delete any of the image files, you can delete the corresponding icons as well. There is a bug in Windows 95 that prevents the Edwin shortcut from being created correctly. To get around this problem, we have created the shortcut with an incorrect command line. You have to manually edit the shortcut to change the curly braces on the command line into parentheses. The command line reads
... -eval {edit}but should read
... -eval (edit)
cd c:\scheme\lib mkdir SRC cd SRC unzip w32rtbci unzip w32rtbciDebugging information files can be installed in another place.
(pp pp)When the debugging information is installed correctly, Scheme will be able to find the source code for the
pp
procedure, and display
it. Otherwise it will use the short opaque form, something like this:
#[compiled-procedure 13 ("pp" #x2) #xF #x646BF7]
Go to the first, previous, next, last section, table of contents.