Next: Windows Installation, Previous: Installation, Up: Installation
We will use as an example the installation for GNU/Linux. The installation for other unix systems is similar.
MIT/GNU Scheme is distributed as a compressed `tar' file. The tar file contains two directories, called bin and lib. The bin directory contains two executable files, scheme and bchscheme. The lib directory contains one subdirectory, lib/mit-scheme, 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.
There are two ways to install this software: the conventional way in /usr/local, and the alternative way, in locations of your choice. We encourage you to install this software in /usr/local if possible.
To install the software in /usr/local, do the following
cd /usr/local rm -f bin/scheme bin/bchscheme rm -rf lib/mit-scheme gzip -cd scheme-7.7.1-ix86-gnu-linux.tar.gz | tar xvf -
After executing these commands, the executable files will be in /usr/local/bin, and the library files will be in /usr/local/lib/mit-scheme. No further configuration is required.
To install the files in directories of your choice:
mkdir temp cd temp gzip -cd scheme-7.7.1-ix86-gnu-linux.tar.gz | tar xvf -
mv bin/* ~/bin/.
mv lib/mit-scheme ~/.
Note that if you have unpacked the distribution on a different drive than the one you plan to store the mit-scheme directory on, you must use the command cp -pr rather than mv.
export MITSCHEME_LIBRARY_PATH=~/mit-scheme
You should put this environment-variable binding in one of your shell init files, e.g. for bash it might go in the .bashrc file.
The second way is to use a command-line argument when invoking Scheme, e.g.
scheme --library ~/mit-scheme