You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unix环境下MIT Scheme 9.2无法调用及安装验证咨询

Fixing "command not found" for MIT Scheme (Non-Superuser Install)

Hey there! Let's get your MIT Scheme up and running smoothly. Since you don't have superuser access, the make install step couldn't add the Scheme binary to system-wide paths—but we can fix this manually.

Step 1: Locate the compiled Scheme executable

First, head back to the directory where you compiled MIT Scheme (probably something like ~/mit-scheme-9.2). Run this command to find the executable scheme file:

find . -name "scheme" -type f -executable

This will output the full path to the working Scheme binary, like ./bin/scheme or ./src/scheme.

Step 2: Test the executable directly

Once you have the path, test if Scheme runs by entering the full absolute path. For example:

~/mit-scheme-9.2/bin/scheme

If you see the Scheme prompt (usually something like 1 ]=>), congratulations—your compilation was successful! The only issue is the binary isn't in your PATH.

Step 3: Add the binary directory to your PATH

To make the scheme command work anywhere, edit your ~/.bashrc file again and add this line (replace the path with the actual bin directory where your scheme executable lives):

export PATH="$PATH:~/mit-scheme-9.2/bin"

Save the file, then apply the changes immediately with:

source ~/.bashrc

Step 4: Verify the setup

  • Check if the path was added correctly:
    echo $PATH
    
    You should see your MIT Scheme bin directory listed.
  • Try running scheme again—this time it should launch the interactive environment without errors.

Step 5: Double-check your MITSCHEME_LIBRARY_PATH

I noticed you added this environment variable, but there's a small issue: the space after the backslash (\ ~/) is unnecessary and might break the path. Update it to something like this (adjust paths to match your actual library locations):

export MITSCHEME_LIBRARY_PATH="~/mit-scheme-9.2/lib:/usr/local/lib/mit-scheme-x86-64"

Make sure the directories you list actually exist—if ~/mit-scheme-plugins isn't a real folder, remove it from the variable.

If you can't find the scheme executable

If the find command returns nothing, your compilation might have failed. Go back to the source directory and run make again, keeping an eye out for error messages. Fix any compilation issues first before proceeding.

内容的提问来源于stack exchange,提问作者Kevin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 03:27:08