I have installed scmutils
(for the book SICM) from the tar ball under /usr/local
.
I then put this in my .emacs
:
(defun mechanics ()
(interactive)
(run-scheme
"/usr/local/scmutils/mit-scheme/bin/scheme --library /usr/local/scmutils/mit-scheme/lib"
))
which is mostly instruction from http://redsymbol.net/articles/using-gnu-emacs-with-scmutils/.
But I get an error:
/usr/local/scmutils/mit-scheme/bin/scheme: 1: /usr/local/scmutils/mit-scheme/bin/scheme:
Syntax error: "(" unexpected
Process scheme exited abnormally with code 2
I also tried running /usr/local/bin/mechanics
, which is a shell script that run eventually run:
$ /usr/local/scmutils/mit-scheme/bin$ /usr/local/scmutils/mit-scheme/bin/scheme --library /usr/local/scmutils/mit-scheme/lib --heap 12000 --band edwin-mechanics.com --edit
$ bash: /usr/local/scmutils/mit-scheme/bin/scheme: cannot execute binary file
I think there's some incompatibility. Here is the "file mit-scheme-x86-64":
mit-scheme-x86-64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0x88f52caf274bb8298a0f6b84fc34beb9d2094bc6, not stripped
and
$ uname -r
3.11.0-26-generic
Anyone can guide me how to debug this now? I am running Ubuntu in VMWare Fusion (Mac OS X).