在 Windows 上运行标准 ML



我一直在寻找一些关于如何在Windows上运行标准ML的好文档。 有人对此有很好的指导吗?

我尝试使用本指南在cygwin中编译sml/nj:http://www.smlnj.org/install/index.html

$ config/install.sh
config/install.sh: Using shell /bin/sh.
config/install.sh: SML root is /usr/local/sml.
config/install.sh: Installation directory is /usr/local/sml.
config/install.sh: Installing version 110.74.
config/install.sh: URL of source archive is http://smlnj.cs.uchicago.edu/dist/working/110.74/.
config/install.sh: Script /usr/local/sml/bin/.arch-n-opsys reports ARCH=x86; OPSYS=win32; HEAP_SUFFIX=x86-win32.
/usr/local/sml/config/unpack: The run-time tree already exists.
config/install.sh: Compiling the run-time system.
(nmake /Fmakefile.win32 MAKE="nmake /Fmakefile.win32" RUNTIME="run.x86-win32.exe" VERSION="v-x86-win32" CC="cl" CFLAGS="/Zi" CPP="cl /E /EP" TARGET=X86 DEFS="  /DHOST_X86 /DTARGET_X86 /DOPSYS_WIN32 /DVREGS /DINDIRECT_CFUNC /DDLOPEN" XOBJS="" XLIBS="" LD_LIBS="" XCLIBS="" run.x86-win32.exe)
make: -c: Command not found
mk.x86-win32:26: recipe for target `all' failed
make: *** [all] Error 127
config/install.sh: !!! Run-time system build failed for some reason.

任何建议将不胜感激。

Moscow ML (MosML) 在 Windows 上开箱即用(不需要 cygwin)。您可以下载 zip 文件或自解压安装程序。

该网站还包含一个相当好的文档(适用于某些MosML特定部分)和其他良好参考的链接。

关于您的问题,您引用的指南没有提到在Windows上编译sml/nj。仅仅使用cygwin并不能使它成为"linux"(cygwin有很多怪癖)。源代码包含有关如何在cygwin上安装(和编译)的一些注释。请注意,如果您使用的是旧版本的 sml/nj,那么它不一定与 cygwin 兼容。

附带说明一下。有一个适用于Windows的微星安装程序,为什么不使用它呢?

标准ML的悠久历史中,它已经成为一个噱头,它的最佳实现几乎不为人所知:Poly/ML。

Github上的版本还包括适用于Windows的MSI。

如果你正在寻找一个快速而肮脏的实现,你可能想尝试剑桥ML。我们用它来教授剑桥的本科生ML。不是大规模开发的最佳选择,但足以教授语言的基础知识。

最新更新