我通过视频讲座和讲义自学 6.001。但是,我在 Ubuntu 中设置 MIT Scheme 时遇到了一些问题(无畏)。
我使用了包管理并安装了 MIT-Scheme,但显然使用的版本不对。应该是 7.5.1 而不是 7.7.90
我按照本网站 ( http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-001Spring-2005/Tools/detail/linuxinstall.htm ) 的说明进行操作
到目前为止,我已经下载了 tar 文件,并解压缩到/usr/local。我不知道第 3 步是什么意思。
然后我输入命令
scheme -large -band 6001.com -edit
错误是
Not enough memory for this configuration. I tried to run under sudo mode, and this time the error is different Unable to allocate process table.
Inconsistency detected
我有接近 1GB 的空闲内存,以及充足的硬盘空间。我应该怎么做才能成功设置它?
最佳答案
第 3 步意味着您应该键入 export MITSCHEME_6001_DIRECTORY=${your_problems_path}
。如果你不想每次启动 Scheme 时都输入它,你应该把它作为一个字符串放在你的 ~/.bash_profile 文件中(以防你使用 bash)
关于问题本身,Google 立即给出了解决方案:
sudo sysctl -w vm.mmap_min_addr=0
(取自 http://ubuntuforums.org/showthread.php?p=4868292)
关于linux - 如何在 Ubuntu 8.10 中为 6.001 设置 MIT Scheme,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/790976/