我一直在尋找一些關於如何讓標準ML在Windows上運行的很好的文檔。有沒有人有一個很好的指導呢?在Windows上運行標準ML
我試圖編譯SML/NJ Cygwin中,使用本指南: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.
任何建議,將不勝感激。
我遇到了同樣的問題(並最終結束了使用Windows msi)。我深入到代碼中,似乎安裝腳本不能識別Cygwin提供的有關操作系統的信息;即使在添加信息之後,它仍然不適用於我,因爲某些代碼是用32位程序集編寫的,而編譯器使用的是64位C庫。 – 2017-07-06 17:25:10