尝试在 MacOSX Snow Leopard 上安装 MIT-Scheme 时遇到问题
我正在尝试安装 MIT-Scheme,以便我可以在终端上使用它,而不是使用 IDE,但是,我很难找到实际上最新且有效的教程。
I am trying to install MIT-Scheme so that i can use it off my terminal instead of using an IDE, however, I am having difficulty trying to find tutorials that are actually up to date and works.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你可以通过Macports安装MIT计划,这可能需要很长时间(我认为它是从源代码编译的)。您还可以从此处获取预编译的二进制文件,它将安装 MIT-Scheme.app它启动 Edwin 一个 Emacs 端口或包含一个方案调试器和 REPL 的东西。但您也可以从命令行启动它。
检查它的安装位置,在我的计算机上,它位于
/Applications/mit-scheme.app/Contents/Resources/
但可能会有所不同。通过编辑~/.bash_profile
并添加以下内容,将此目录添加到您的PATH
中:检查
which mit-scheme
以确保其安装正确。至于 Racket,还可以从此处获取预编译的二进制文件。 (它可能在 Macports 中,但也可能不是,或者在 Fink 中,我不知道。我尽量避免这些,并尽可能使用 Homebrew。)这是一个 dmg 文件,您可以提取该文件并放在你想要的任何地方。我把我的放在
~/bin
中,并将~/bin/racket/bin/
添加到我的PATH
中,过程与上面相同,但是你可以把它放在任何地方,/Applications/
或其他地方。祝你好运。
You can install MIT Scheme through Macports, and it will probably take a long time (it's compiling it from source, I think). You can also get a precompiled binary from here which will install an MIT-Scheme.app which starts Edwin an Emacs port or something which includes a Scheme debugger and REPL. But you can also start it from the command line.
Check to see where it installed to, on my machine it's here
/Applications/mit-scheme.app/Contents/Resources/
but that might vary. Add this directory to yourPATH
by editing~/.bash_profile
and adding this:Check with
which mit-scheme
to make sure it installed correctly.As for Racket, there's also a precompiled binary available from here. (It might be in Macports but it might not be, or in Fink, I don't know. I try to avoid those and use Homebrew if possible.) This is a
dmg
file which you can extract and put wherever you want. I put mine in~/bin
and added~/bin/racket/bin/
to myPATH
as well, same process as above, but you can put it anywhere,/Applications/
or whatever.Good luck.
这似乎是一个奇怪的答案,因为它是关于 Racket 的一个问题,而这个问题最初是关于 MIT Scheme 的,但既然你也尝试过 Racket...
要从终端运行 Racket,你需要使用
racket
可执行文件,可在bin
子目录中找到。例如,如果您将其安装在/Applications/Racket-5.1
处,那么您将运行/Applications/Racket-5.1/bin/racket
。 (您可以修改您的$PATH
或添加一些符号链接,以便可以在不指定完整路径的情况下运行。)This seems like a odd answer since it's about Racket for a question that was originally about MIT Scheme, but since you tried Racket too...
To run Racket from the terminal, you need to use the
racket
executable, which is found in thebin
subdirectory. For example, if you install it at/Applications/Racket-5.1
, then you'd run/Applications/Racket-5.1/bin/racket
. (And you could modify your$PATH
or add some symlink to make it possible to run without specifying the full path.)您可以在此处找到详细答案。
这是一个简短的版本:
下载 MIT-Scheme 的 .dmg 文件。根据您的硬件架构选择 32 位或 64 位。
安装后运行以下命令
对于 32 位程序包:
对于 64 位程序包:
You can find the detailed answer here.
Here is a short version:
Download .dmg file of MIT-Scheme. 32-bit or 64-bit based on your hardware architecture.
After installation run the following commands
For 32-bit package:
For 64-bit package: