如何在Mac上安装MIT Scheme? [英] How to install MIT Scheme on Mac?
问题描述
我想在Mac上安装 MIT方案,我已经下载了 MacOS X二进制文件(x86-64).
I want to install MIT Scheme on my Mac, I have downloaded the MacOS X binary(x86-64).
但是,我无法在Mac Terminal上使用它.
However, I could not make it work using Mac Terminal.
我试图关注这些文章:
但它似乎已经过时,无法正常工作.
but it seems out of date and does not work.
因此,我正在寻找一种简单的方法,允许我使用Mac Terminal编写Scheme代码.
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.
推荐答案
针对EL CAPITAN的更新:
The best way that I've found was from here:
- 下载 32 -bit 或
对于32位版本,请运行以下命令:
- Download either the 32-bit or 64-bit dmg file for Scheme.
- 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.
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
对于64位版本,请首先运行以下命令:
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
就是这样!现在,您应该可以在终端中通过在命令行中键入"scheme"来使用MIT Scheme:
And that's it! Now you should be able to use MIT Scheme in your terminal by typing "scheme" into the command line:
这篇关于如何在Mac上安装MIT Scheme?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!