aboutsummaryrefslogtreecommitdiffstats
path: root/log/2022-09-13_scmutils_setup.md
blob: 1eee24244ea201eea0dd5100848af43361b6bf25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

Installing scmutils on Debian Stable
======================================

Upstream directions seem to be: <https://groups.csail.mit.edu/mac/users/gjs/6946/installation.html>

Started by trying to upgrade `mit-scheme` to the debian testing version, 11.2.
The debian stable version is currently 10.1.11, which recent scmutils does not
support.

    wget http://http.us.debian.org/debian/pool/main/m/mit-scheme/mit-scheme_11.2-4_amd64.deb
    sudo apt install ./mit-scheme_11.2-4_amd64.deb

Nope, that doesn't work because of libc6 incompatability. Let's do upstream install:

    sudo apt remove mit-scheme

    wget https://ftp.gnu.org/gnu/mit-scheme/stable.pkg/11.2/mit-scheme-11.2-x86-64.tar.gz
    # extract, enter base directory
    cd src
    ./configure
    make
    sudo make install

Everything ends up under `/usr/local/`. To run edwin directly (no scmutils):

    mit-scheme --edit

To install `scmutils`, download and extract (linked from instructions above),
then:

    sudo ./install.sh
    sudo cp mechanics.sh /usr/local/bin/

To start a session, just run `mechanics.sh` from a shell. Then run `(edit)` to
get edwin mode.

`scmutils` docs are in `/usr/local/scmutils/manual/`

## Tips and Tricks

Helpful to run with `rlwrap`:

    rlwrap mechanics

This gives "up" for "last line" etc.