如何在Mac上安装MIT Scheme? [英] How to install MIT Scheme on Mac?

查看:154
本文介绍了如何在Mac上安装MIT Scheme?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在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.

我试图关注这些文章:

安装MIT/Mac OS X Leopard上的GNU方案

在Mac OS X上安装MIT方案

但它似乎已经过时,无法正常工作.

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:

  1. 下载 32 -bit
  2. 对于32位版本,请运行以下命令:

  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

对于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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆