Ubuntu中的Mit方案安装错误(环境变量设置)

时间:2016-06-02 05:29:23

标签: linux ubuntu gcc scheme mit-scheme

我正在尝试在Windows 10上的Ubuntu中安装MIT-Scheme。 我从Mit-Scheme网站下载了tar文件。

我运行命令tar -xzf mit-scheme-9.2.tar.gz。然后是cd mit-scheme-9.2/。然后是cd src。然后是./configure。 但是,我得到下面的错误日志。感谢一些建议。谢谢。

mingerz@DESKTOP-BMERQIM:~/mit-scheme-9.2/src$ ./configure
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for native-code support... yes, for x86-64
checking for an existing MIT/GNU Scheme installation... configure: error:
This script needs an existing MIT/GNU Scheme installation to function,
but the following programs do not run it:

   mit-scheme-x86-64
   mit-scheme

If you have installed MIT/GNU Scheme in an unusual location, set the
environment variable MIT_SCHEME_EXE to the name or pathname of the
MIT/GNU Scheme executable, which is usually `mit-scheme' or
`/usr/local/bin/mit-scheme', and set the environment variable
MITSCHEME_LIBRARY_PATH to the pathname of the MIT/GNU Scheme library
directory, which is usually `/usr/local/lib/mit-scheme-x86-64'.

我不明白如何实现它要求我关于环境变量的建议。

2 个答案:

答案 0 :(得分:0)

  

此脚本需要现有的MIT / GNU Scheme安装才能运行

$ sudo apt-get install mit-schemehttp://packages.ubuntu.com/search?keywords=mit-scheme&searchon=names

答案 1 :(得分:-1)

在mac上遇到同样的问题。 而不是从源代码构建,安装包在我的案例中有所帮助。

一个。安装二进制文件:

  1. 从麻省理工学院网站获取Ubunto的MIT-scheme(包)http://www.gnu.org/software/mit-scheme/

  2. 安装

  3. 〜/ .bash_profile中的别名mit_scheme - >

  4. 别名mit-scheme ="您计算机上的MIT_scheme路径"

    例如。 alias mit-scheme =" /Applications/MIT-Scheme.app/Contents/Resources/mit-scheme" 这样你就可以从bash访问它了。

    B中。如果从源代码构建,此链接可能会有所帮助。 https://groups.csail.mit.edu/mac/users/gjs/6.945/dont-panic/

    他们说 - >不要恐慌