There are a few gotchas when building Chez Scheme from source. The first is that you’ll need to install libncurses5-dev and libx11-dev

$ apt install build-essential libncurses5-dev libx11-dev

The next thing to consider is that you cannot build on a server or Virtual Machine with less than 4 Gigabytes of memory. This is because the nanopass compiler is a memory hog (see this issue) and there seems to be no fix.

Welcome to Scheme/LISP – Where there is always some bullshit hurdle to getting shit done.

Here are the steps you can take to deploy Chez Scheme on a remote server, such as a VPS that doesn’t have enough memory.

  1. Download and install: https://www.virtualbox.org/wiki/Downloads
  2. Download an iso of your version of linux, make sure to match perfectly with what is running on the server. For me it’s Debian 9 x64.
  3. Install a minimal linux system, then run: apt install build-essential libncurses5-dev libx11-dev rsync
  4. Clone the ChezScheme repo, then in that dir run ./configure && make
  5. rsync, or scp, ChezScheme to your server with: rsync -av ChezScheme/ user@server.com:/path/ChezScheme
  6. Once the sync is don, ssh to your server, into your ChezScheme dir, and run: make install

That should be about it!