SML/NJ 命令提示符错误
SML/NJ Error in Command Prompt
所以我使用 Windows 安装程序包 "smlnj-110.79" 在 Windows 10 中安装了 SML/NJ,并按照 this coursera video lecture 中的说明进行操作,我应该能够以打开命令提示符并通过键入 "sml" 访问 sml。但是,当我 return "sml" 时,系统提示我 "sml is not recognized as an internal or external command, operable program or batch file"。我应该注意到,如果我打开实际的 SML/NJ 程序本身,它工作正常。我正在尝试在 emacs 中使用 SML/NJ,这会影响吗?谢谢!
您需要将包含SML 的目录添加到您的系统路径中。在我的机器上,路径条目是 C:\Program Files (x86)\SMLNJ\bin\
。请参阅 this for modifying the path in Windows 10. If you haven't manually edited your path before (which seems to be the case given the question) you do need to be careful to add to rather than overwrite the current path. Windows has always been clunky in making this possible. This 是一篇建议一些实用程序的文章。我没试过,所以我不能保证。
所以我使用 Windows 安装程序包 "smlnj-110.79" 在 Windows 10 中安装了 SML/NJ,并按照 this coursera video lecture 中的说明进行操作,我应该能够以打开命令提示符并通过键入 "sml" 访问 sml。但是,当我 return "sml" 时,系统提示我 "sml is not recognized as an internal or external command, operable program or batch file"。我应该注意到,如果我打开实际的 SML/NJ 程序本身,它工作正常。我正在尝试在 emacs 中使用 SML/NJ,这会影响吗?谢谢!
您需要将包含SML 的目录添加到您的系统路径中。在我的机器上,路径条目是 C:\Program Files (x86)\SMLNJ\bin\
。请参阅 this for modifying the path in Windows 10. If you haven't manually edited your path before (which seems to be the case given the question) you do need to be careful to add to rather than overwrite the current path. Windows has always been clunky in making this possible. This 是一篇建议一些实用程序的文章。我没试过,所以我不能保证。