我一直在寻找一些关于如何让标准ML在Windows上运行的很好的文档。 有没有人有一个很好的指导呢?
我已经尝试编译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.
任何build议,将不胜感激。
莫斯科ML (mosml)在Windows上开箱即用(不需要cygwin)。 您可以下载zip文件或自解压安装程序。
该网站还包含一个相当不错的文档(适用于某些mosml特定部分)和其他好的参考链接。
关于你的问题,你提到的指南没有提到在窗口上编译sml / nj。 只是使用cygwin不会使它成为“linux”(cygwin有一些怪癖)。 源代码包含了一些关于如何在cygwin上安装(和编译)的注释 。 注意,如果您使用的是旧版本的sml / nj,那么它不一定与cygwin兼容。
在旁边注意。 有一个MSI安装程序的Windows,为什么不使用它?
在标准ML的悠久历史中,它已经成为一个流行的堵嘴,它的最佳实现几乎是未知的: poly / ML 。
Github的发布版本还包括Windows的MSI。
如果你正在寻找一个快速和肮脏的实施,你可能想尝试剑桥ML 。 我们用它来在剑桥大学教授本科生ML。 不是大规模开发的最佳选择,但足以教授语言的基础知识。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。