如何在 Ubuntu 上安装 Petite Chez Scheme?

How to install Petite Chez Scheme on Ubuntu?

How to install Petite Chez Scheme on Ubuntu?

I 运行 Ubuntu 15.10 并尝试为 Linux.

安装 pcsv8.4-a6le.tar.gz(非线程,64 位)

/usr/locale 中解压此 tar 后,我输入命令

sudo ./configure 
sudo make install 

来自 custom 目录。

但是,我没有进行全新安装,而是收到以下错误(希望有人能帮我解决):

nlykkei@nlykkei-Studio-XPS-1640:/usr/local/csv8.4/custom$ sudo make install
if [ yes = no ]; then if [ ! -f ./scheme ]; then /bin/rm -f ./scheme; ln -s ../bin/a6le/scheme ./scheme; fi; fi
if [ ! -f ./petite ]; then /bin/rm -f ./petite; ln -s ./scheme ./petite; fi
/bin/rm -f ./scheme
echo "const char *S_date_stamp = \"`date +%m%d%Y%H%M%S`\";" > datestamp.c
gcc -m64 -rdynamic -o ./scheme datestamp.c ../boot/a6le/kernel.o ../boot/a6le/custom.o   -lm -ldl -lncurses -lrt
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Mf-a6le:22: recipe for target 'scheme' failed
make[2]: *** [scheme] Error 1
Makefile:47: recipe for target 'buildpetite' failed
make[1]: *** [buildpetite] Error 2
Mf-install:64: recipe for target 'install' failed
make: *** [install] Error 2

改为下载 RPM 包并从终端使用 alien 生成 deb 文件:

fakeroot alien PetiteChezScheme-8.4-1.x86_64.rpm

您可能需要安装 fakerootalien 才能正常工作:

apt-get install fakeroot alien

然后你就会有一个deb文件。如果您在桌面上,只需双击该文件,它将打开软件中心,您可以单击 install,它将解决您的依赖性问题。

在 Ubuntu 上,安装 libncurses5-dev 软件包以获得 libncurses.so。 (您可以通过访问 http://packages.debian.org/file:libncurses.so (sadly, this doesn't seem to work for http://packages.ubuntu.com/file:libncurses.so 来发现这一点)。)

如果 Chez 需要其他库也安装开发包,您可能会发现其他链接错误。使用与上述相同的技术。

直接从他们的 Github 开始构建。

ChezScheme

然后

./configure
sudo make install

根据 Building 的先决条件是:

  • GNU 制作
  • gcc
  • ncurses 的头文件和库
  • X 的头文件和库 windows

是的,如果在 Ubuntu 上,请按照 Chris 的说明安装 libncurses5-dev。就是这样做的,并且在全新安装中没有显示任何错误。

在最新版本的 Ubuntu 上(以及 Debian 的未来版本,例如 "Buster",以及其他基于 Debian 的发行版),您可以通过以下方式直接从存储库安装 Chez Scheme:

sudo apt install chezscheme

以前您必须通过从源代码编译来安装它。 Chez Scheme has been open source, for a few years now, and can be compiled from source, if it is not directly installable from the distribution's repo(s). Just download the source code编译安装。这不仅会安装 "petite" 运行时版本,还会安装完整的编译器。您可以使用以下命令编译和安装软件:

./configure
sudo make install

完整的构建和安装说明可用 here

构建的先决条件是:

  • GNU 制作
  • 海湾合作委员会
  • ncurses 的头文件和库
  • X 的头文件和库 windows

Chez Scheme 自从提出这个问题后就已经开源了。自 Bionic (18.04LTS) 起,完整的 chezscheme 可作为存储库使用。

先做

sudo apt update

然后安装包:

sudo apt install chezscheme

这提供了 petite 解释器和完整的 scheme 编译器。

这里还有一个用于 trusty 和 xenial 的 PPA:

https://launchpad.net/~jonathonf/+archive/ubuntu/lisp?field.series_filter=