Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install MIT Scheme on Mac?

I want to install MIT Scheme on my Mac, I have downloaded the MacOS X binary(x86-64).

However, I could not make it work using Mac Terminal.

I have tried to follow these articles:

Installing MIT/GNU Scheme on Mac OS X Leopard

Installing MIT Scheme on Mac OS X

but it seems out of date and does not work.

So, I'm looking for a simple method which allows me to write Scheme code using Mac Terminal.

I have struggled for hours to try to install it.

like image 493
Timeless Avatar asked Sep 07 '12 17:09

Timeless


People also ask

Can I run scheme on a Mac?

The key is to macOS's built-in emulation system to run the x86 version of MIT Scheme. Scheme won't be running natively on Apple Silicon, but it will be running — and sometimes that's enough. There are three parts to this setup: Download x86 Scheme.

How do I run a terminal scheme?

To run Scheme from within Emacs, start emacs, and then use the command M-x run-scheme. (That is, press the ESC key, then x then at the prompt run-scheme ).


1 Answers

UPDATED FOR EL CAPITAN:

The best way that I've found was from here:

  1. Download either the 32-bit or 64-bit dmg file for Scheme.
  2. Double click the .dmg file, and you'll get this window, in which you should drag the "MIT/GNU Scheme" file into the Applications folder.
  3. For the 32-bit version, run this command:

    sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-i386 

    Then enter your administrator password, and run this command:

    sudo ln -s /usr/local/lib/mit-scheme-i386/mit-scheme /usr/local/bin/scheme 

    For the 64-bit version, first run this command:

    sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources /usr/local/lib/mit-scheme-x86-64 

    Then enter your administrator password and run this command:

    sudo ln -s /usr/local/lib/mit-scheme-x86-64/mit-scheme /usr/local/bin/scheme 

And that's it! Now you should be able to use MIT Scheme in your terminal by typing "scheme" into the command line:

like image 56
Alex K Avatar answered Nov 16 '22 01:11

Alex K