美文网首页
安装Chez Scheme

安装Chez Scheme

作者: 岦_ | 来源:发表于2016-04-30 01:08 被阅读3409次

撒花(*o*)

神的Scheme实现Chez Scheme开源了!-> Chez Scheme

于是我果断在自己的VPS(CentOS7)中安装尝鲜,发现安装的时候需要一些依赖,所以在此写出来,方便有需要的同学,节省玩弄搜索引擎的时间。

确切地说,你可能在make的时候会看到以下错误

fatal error: curses.h: No such file or directory
or
fatal error: X11/Xlib.h: No such file or directory

安装依赖解决...

yum install -y git ncurses-devel libX11-devel
git clone https://github.com/cisco/ChezScheme.git
cd ChezSchenme
./configure
make install

如果你是用到是Ubuntu则使用:

apt-get install libncurses5-dev libx11-dev

如果你在执行 make install时报“ ./installsh: 64: [: 0: unexpected operator ”错误,那是因为Ubuntu默认的shell是dash,而不是bash,而编译脚本中的这一行语法在dash中是错误的,你可以修改你所使用的shell以解决这个问题:
sudo dpkg-reconfigure dash

Chez Scheme

相关文章

网友评论

      本文标题:安装Chez Scheme

      本文链接:https://www.haomeiwen.com/subject/jxrkrttx.html