How to install MIT Scheme on Mac?
Asked Answered
E

10

61

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.

Escamilla answered 7/9, 2012 at 17:1 Comment(7)
What do you mean by "does not work"? What does it do, and how is that different from what you expect?Funchal
@Funchal the 1st link assume what you downloaded is a tar file, but what i download is a dmz file , and for the 2nd link after i type the command sudo ln -s /Applications/MIT\:GNU\ Scheme.app/Contents/Resources/mit-scheme /usr/bin/scheme , followed by type "scheme" it does not work according to the post.Escamilla
again, you have to be more specific than "does not work". what is the error message that you get when you try to run the command?Funchal
How is this "not related to programming"? Stackoverflow really blows these daysSeptempartite
@Funchal there is no error message.i just follow the instruction from 2nd article and it does not work without error messageEscamilla
This is the cleanest instruction I've found so far. No need to install anything else. Although it says Mountain Lion, it works for me (Lion 10.7.5). In fact it would work for any mac on Intel processor.Protomartyr
@Timeless: The second article you referenced ("Installing MIT Scheme on Mac OS X") is now a dead link, i.e., "UMWiki Retired June 30, 2016." So, it's even more out of date. :-)Sensuality
N
85

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:

Nolita answered 24/7, 2015 at 2:41 Comment(5)
I already had it installed but I had no idea I could use it from my own terminal. Thanks!Letourneau
Worked like a charm. Thanks!Journalese
what about brew install mit-scheme Sufficiency
No, now you run M-x run-scheme! Is there any other way? No.Commendam
Thank you @Sufficiency . Or you can use services like repl.it in '19Smallpox
S
41

Homebrew makes it easy for you. On Terminal, type:

ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) ; brew install mit-scheme

Done!

Edit

The install script has been moved:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ; brew install mit-scheme
Septempartite answered 7/9, 2012 at 17:5 Comment(9)
Hmm, yes sorry. Homebrew has some prerequisites: github.com/mxcl/homebrew/wiki/InstallationSeptempartite
Anyway, running this worked just fine for me and afterwards it launches with 'mit-scheme' :)Septempartite
hi,i got this error:Failed executing: etc/make-liarc.sh --disable-debug --prefix=/usr/local/Cellar/mit-scheme/9.1.1 --mandir=/usr/local/Cellar/mit-scheme/9.1.1/share/man (mit-scheme.rb:39) any idea...thanks.Escamilla
@null The error is due to differences in Xcode versions. If you have the latest Xcode installed, running brew update would work IMO. However, if you don't have Xcode, then we both are on the same boat!Ramiah
Careful ! The install script has moved from raw.github.com/mxcl/homebrew/go to raw.github.com/mxcl/homebrew/go/install !Fat
If you already installed homebrew, then just need brew install mit-schemeCas
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Granulose
This answer no longer works. mit-scheme now needs the hombrew/x11 tap AND a very inconvenient install of xquartz. At least on 10.10.Amalita
brew cask install xquartz && brew install mit-schemeSingularize
T
41

For Yosemite 10.10.3:

After installing X11.app and homebrew,

$ brew tap homebrew/x11
$ brew install mit-scheme

I found it easier when a maintained package manager such as homebrew covers all the dependency and build stuff.


Edit: simply

$ brew install mit-scheme

would do. X11 is now optional instead of dependence. There is still an --with-x11 option which requires whole Xcode.

Trussell answered 11/4, 2015 at 18:33 Comment(0)
S
23

You can install scheme using homebrew using the following command

brew install mit-scheme
Submerged answered 18/6, 2014 at 18:14 Comment(1)
Note that mit-scheme requires XQuartz (X11.app), and that XQuartz is no longer distributed with OSX past Mountain Lion. To install mit-scheme through homebrew, you will need to install XQuartz first, else an error will stop the install. You can download and install XQuartz from their site yourself, or check out the cask extension for homebrew, through which you can install XQuartz.Stallfeed
V
10

If you have the latest version of Mac system, El Capitan 10.11.2, You might need to do something different than above.

The first command will be same. 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

Note: The difference is you need to put local between /usr/ and /bin/

Type scheme in the terminal to see if it works. If you get the following screenshot, that means you succeed it.

Success Result

You definitely need to put local there. The reason is this, Apple improved OS security in OSX 10.10 (rootless), and changes to the general system-wide binaries (such as /usr/bin) is not permitted.

Verdha answered 7/10, 2015 at 3:35 Comment(0)
H
6

If you are having trouble with the accepted answer from @virgil-ming, try this:

$ brew install Caskroom/cask/xquartz
$ brew install mit-scheme

Same idea, of course, but this got me up and running when brew tap homebrew/x11 responded with multiple conflicts.

As always, remember to brew update then try again when you are having problems, a la Homebrew's troubleshooting guide.

Huckaback answered 12/10, 2015 at 19:26 Comment(0)
F
5

If you are using docker, and I recommend you do:

docker run -it inikolaev/alpine-scheme

will drop you right into a scheme REPL.

Fledge answered 26/6, 2018 at 19:8 Comment(1)
It is what I want.Minutely
W
3

UPDATE FOR MAC OS HIGH SIERRA:

Worked for me just by executing (if you are using Homebrew):

brew install mit-scheme

Warrin answered 4/12, 2017 at 11:5 Comment(0)
P
2

If you are using MacPorts, the command is similar to what others have posted for homebrew -

sudo port install mit-scheme

That set me up pretty well on OS X 10.8.5

Pergolesi answered 5/1, 2015 at 10:24 Comment(0)
C
0

I came across a problem that the 10.x versions of the MIT/GNU Scheme do not support Mac OS X 10.11 El Capitan. In fact, it requires Mac OS X 10.13 or higher.

The topmost version supporting older Mac OS X versions is MIT/GNU Scheme 9.2.

Chromatics answered 28/8, 2020 at 9:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.